some cleanup
This commit is contained in:
@@ -78,8 +78,7 @@ void cell_trace_sethook(cell_hook);
|
||||
#define QJSCLASS(TYPE, ...)\
|
||||
JSClassID js_##TYPE##_id;\
|
||||
static void js_##TYPE##_finalizer(JSRuntime *rt, JSValue val){\
|
||||
JSContext *js = JS_GetContext(rt);\
|
||||
TYPE *n = JS_GetOpaque2(js, val, js_##TYPE##_id); \
|
||||
TYPE *n = JS_GetOpaque(val, js_##TYPE##_id); \
|
||||
TYPE##_free(rt,n);}\
|
||||
static JSClassDef js_##TYPE##_class = {\
|
||||
.class_name = #TYPE,\
|
||||
|
||||
Reference in New Issue
Block a user