Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for call_callback (0.13 sec)

  1. src/runtime/testdata/testprogcgo/panic.go

    package main
    
    // This program will crash.
    // We want to test unwinding from a cgo callback.
    
    /*
    void call_callback(void);
    */
    import "C"
    
    func init() {
    	register("PanicCallback", PanicCallback)
    }
    
    //export panic_callback
    func panic_callback() {
    	var i *int
    	*i = 42
    }
    
    func PanicCallback() {
    	C.call_callback()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 20:29:07 UTC 2021
    - 312 bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/panic.c

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    extern void panic_callback();
    
    void call_callback(void) {
    	panic_callback();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 20:29:07 UTC 2021
    - 239 bytes
    - Viewed (0)
Back to top