diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-27 22:56:47 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-27 22:56:47 +0200 |
commit | 756ac1277b8e19769827dd08a764105e4c4720a6 (patch) | |
tree | b6a705dd7cf0e941ec7016d6c308c314994556d0 /src/bindings | |
parent | 50eead4e8a483c06008553d803af8d1adaa0cc4f (diff) | |
download | chawan-756ac1277b8e19769827dd08a764105e4c4720a6.tar.gz |
Remove getClassID hack
Add a JS_GetClassID function to QJS instead.
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/quickjs.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim index b49ed1cf..c84b54d9 100644 --- a/src/bindings/quickjs.nim +++ b/src/bindings/quickjs.nim @@ -322,6 +322,7 @@ proc JS_NewPromiseCapability*(ctx: JSContext, resolving_funcs: ptr JSValue): JSV proc JS_SetOpaque*(obj: JSValue, opaque: pointer) proc JS_GetOpaque*(obj: JSValue, class_id: JSClassID): pointer proc JS_GetOpaque2*(ctx: JSContext, obj: JSValue, class_id: JSClassID): pointer +proc JS_GetClassID*(obj: JSValue): JSClassID proc JS_ParseJSON*(ctx: JSContext, buf: cstring, buf_len: csize_t, filename: cstring): JSValue proc JS_ParseJSON2*(ctx: JSContext, buf: cstring, buf_len: csize_t, filename: cstring, flags: cint): JSValue |