Signed-off-by: doujiang24 <doujiang24@gmail.com>
This commit is contained in:
doujiang24 2023-08-26 01:01:55 +08:00
parent 6e4adbc07a
commit f1a17b08b0

View file

@ -432,7 +432,7 @@ pointer safely, the program may crash or see memory corruption.
For example:
// #cgo nocallback cFunctionName
// #cgo noescape cFunctionName
When a Go function calls a C function, it prepares for the C function to
call back to a Go function. the #cgo nocallback directive may be used to
@ -442,7 +442,7 @@ Go code, the program will panic.
For example:
// #cgo noescape cFunctionName
// #cgo nocallback cFunctionName
# Special cases