- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for cgoNoCallback (0.17 sec)
-
src/runtime/testdata/testprogcgo/cgonocallback.go
extern void runCShouldNotCallback(); */ import "C" import ( "fmt" ) func init() { register("CgoNoCallback", CgoNoCallback) } //export CallbackToGo func CallbackToGo() { } func CgoNoCallback() { C.runCShouldNotCallback() fmt.Println("OK")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 16:43:23 UTC 2023 - 629 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/cgonocallback.c
doujiang24 <******@****.***> 1692983191 +0000
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 236 bytes - Viewed (0) -
src/runtime/linkname.go
//go:linkname write // used by cgo //go:linkname _cgo_panic_internal //go:linkname cgoAlwaysFalse //go:linkname cgoUse //go:linkname cgoCheckPointer //go:linkname cgoCheckResult //go:linkname cgoNoCallback //go:linkname gobytes //go:linkname gostringn // used in plugin //go:linkname doInit // used in math/bits //go:linkname overflowError //go:linkname divideError // used in tests
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 778 bytes - Viewed (0) -
src/runtime/cgo.go
// escape analysis result. The test is cheaper than the call. var cgoAlwaysFalse bool var cgo_yield = &_cgo_yield func cgoNoCallback(v bool) { g := getg() if g.nocgocallback && v { panic("runtime: unexpected setting cgoNoCallback") } g.nocgocallback = v
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 3.1K bytes - Viewed (0) -
src/runtime/crash_cgo_test.go
if output != want { t.Fatalf("want %s, got %s\n", want, output) } } func TestCgoNoCallback(t *testing.T) { t.Skip("TODO(#56378): enable in Go 1.23") got := runTestProg(t, "testprogcgo", "CgoNoCallback") want := "function marked with #cgo nocallback called back into Go" if !strings.Contains(got, want) { t.Fatalf("did not see %q in output:\n%s", want, got) } } func TestCgoNoEscape(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 22.2K bytes - Viewed (0) -
src/cmd/cgo/out.go
fmt.Fprintf(fgo2, "//go:linkname _Cgo_use runtime.cgoUse\n") fmt.Fprintf(fgo2, "func _Cgo_use(interface{})\n") } fmt.Fprintf(fgo2, "//go:linkname _Cgo_no_callback runtime.cgoNoCallback\n") fmt.Fprintf(fgo2, "func _Cgo_no_callback(bool)\n") typedefNames := make([]string, 0, len(typedef)) for name := range typedef { if name == "_Ctype_void" { // We provide an appropriate declaration for
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:10 UTC 2024 - 59.6K bytes - Viewed (0)