Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for callDestructorCallback (1.46 sec)

  1. src/runtime/testdata/testprogcgo/destructor.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "_cgo_export.h"
    
    static void callDestructorCallback() {
    	GoDestructorCallback();
    }
    
    static void (*destructorFn)(void);
    
    void registerDestructor() {
    	destructorFn = callDestructorCallback;
    }
    
    __attribute__((destructor))
    static void destructor() {
    	if (destructorFn) {
    		destructorFn();
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:26:05 UTC 2023
    - 459 bytes
    - Viewed (0)
Back to top