From 756ac1277b8e19769827dd08a764105e4c4720a6 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 27 Jun 2023 22:56:47 +0200 Subject: Remove getClassID hack Add a JS_GetClassID function to QJS instead. --- lib/quickjs/quickjs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/quickjs/quickjs.h') diff --git a/lib/quickjs/quickjs.h b/lib/quickjs/quickjs.h index b05e510d..1d761379 100644 --- a/lib/quickjs/quickjs.h +++ b/lib/quickjs/quickjs.h @@ -803,6 +803,7 @@ int JS_DefinePropertyGetSet(JSContext *ctx, JSValueConst this_obj, void JS_SetOpaque(JSValue obj, void *opaque); void *JS_GetOpaque(JSValueConst obj, JSClassID class_id); void *JS_GetOpaque2(JSContext *ctx, JSValueConst obj, JSClassID class_id); +JSClassID JS_GetClassID(JSValueConst obj); /* 'buf' must be zero terminated i.e. buf[buf_len] = '\0'. */ JSValue JS_ParseJSON(JSContext *ctx, const char *buf, size_t buf_len, -- cgit 1.4.1-2-gfad0