#include "api.js.h" #include "log.h" #include static JSValue _tf_api_register_imports(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv) { return JS_UNDEFINED; } void tf_api_register(JSContext* context) { JSValue global = JS_GetGlobalObject(context); JSValue ssb = JS_GetPropertyStr(context, global, "ssb"); JS_SetPropertyStr(context, ssb, "registerImports", JS_NewCFunction(context, _tf_api_register_imports, "registerImports", 2)); JS_FreeValue(context, ssb); JS_FreeValue(context, global); }