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

Function JS_NewBool

deps/quickjs/quickjs.h:698–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696/* value handling */
697
698static inline JSValue JS_NewBool(JSContext *ctx, bool val)
699{
700 (void)&ctx;
701 return JS_MKVAL(JS_TAG_BOOL, (val != 0));
702}
703
704static inline JSValue JS_NewInt32(JSContext *ctx, int32_t val)
705{

Callers 5

js_std_file_eofFunction · 0.85
js_std_file_errorFunction · 0.85
js_os_isattyFunction · 0.85
JS_ToBooleanFunction · 0.85

Calls 1

JS_MKVALFunction · 0.85

Tested by

no test coverage detected