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

Function JS_NewCFunction

deps/quickjs/quickjs.h:1303–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301 int length, int magic, void *opaque);
1302
1303static inline JSValue JS_NewCFunction(JSContext *ctx, JSCFunction *func,
1304 const char *name, int length)
1305{
1306 return JS_NewCFunction2(ctx, func, name, length, JS_CFUNC_generic, 0);
1307}
1308
1309static inline JSValue JS_NewCFunctionMagic(JSContext *ctx, JSCFunctionMagic *func,
1310 const char *name, int length,

Callers 4

js_std_add_helpersFunction · 0.85
add_helpers1Function · 0.85
cfunctionsFunction · 0.85

Calls

no outgoing calls

Tested by 3

add_helpers1Function · 0.68
cfunctionsFunction · 0.68