Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for issue8148Callback (0.28 sec)

  1. src/cmd/cgo/internal/test/issue8148.go

    // with an exported Go function.  No runtime test; just make sure it
    // compiles.
    
    package cgotest
    
    /*
    typedef struct { int i; } T;
    int get8148(void);
    */
    import "C"
    
    //export issue8148Callback
    func issue8148Callback(t *C.T) C.int {
    	return t.i
    }
    
    func Issue8148() int {
    	return int(C.get8148())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 526 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue8148.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"
    
    int get8148(void) {
    	T t;
    	t.i = 42;
    	return issue8148Callback(&t);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 256 bytes
    - Viewed (0)
Back to top