diff options
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/curl.nim | 2 | ||||
-rw-r--r-- | src/bindings/quickjs.nim | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/bindings/curl.nim b/src/bindings/curl.nim index 07395b65..ed2057eb 100644 --- a/src/bindings/curl.nim +++ b/src/bindings/curl.nim @@ -286,7 +286,9 @@ type CURLMSG_LAST # last, not used proc `==`*(a: CURL, b: CURL): bool {.borrow.} +proc `==`*(a: CURL, b: typeof(nil)): bool {.borrow.} proc `==`*(a: CURLM, b: CURLM): bool {.borrow.} +proc `==`*(a: CURLM, b: typeof(nil)): bool {.borrow.} {.push importc.} diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim index 7ff8fd0f..d415c17e 100644 --- a/src/bindings/quickjs.nim +++ b/src/bindings/quickjs.nim @@ -281,7 +281,8 @@ template JS_CGETSET_DEF*(n: string, fgetter, fsetter: untyped): JSCFunctionListE get: JSCFunctionType(getter: fgetter), set: JSCFunctionType(setter: fsetter)))) -template JS_CGETSET_MAGIC_DEF*(n: string, fgetter, fsetter: untyped, m: cint): JSCFunctionListEntry = +template JS_CGETSET_MAGIC_DEF*(n: string, fgetter, fsetter: untyped, + m: int16): JSCFunctionListEntry = JSCFunctionListEntry(name: cstring(n), prop_flags: JS_PROP_CONFIGURABLE, def_type: JS_DEF_CGETSET_MAGIC, |