MCPcopy Create free account
hub / github.com/buke/quickjs-go / goInterruptHandler

Function goInterruptHandler

callback_dispatch.go:43–49  ·  view source on GitHub ↗

export goInterruptHandler

(runtimePtr *C.JSRuntime)

Source from the content-addressed store, hash-verified

41
42//export goInterruptHandler
43func goInterruptHandler(runtimePtr *C.JSRuntime) C.int {
44 runtime := getRuntimeFromJS(runtimePtr)
45 if runtime == nil {
46 return C.int(0)
47 }
48 return C.int(runtime.callInterruptHandler())
49}
50
51//export goFunctionProxy
52func goFunctionProxy(ctx *C.JSContext, thisVal C.JSValueConst,

Calls 2

getRuntimeFromJSFunction · 0.85
callInterruptHandlerMethod · 0.80