about summary refs log tree commit diff stats
path: root/src/bindings/libunicode.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/libunicode.nim')
-rw-r--r--src/bindings/libunicode.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bindings/libunicode.nim b/src/bindings/libunicode.nim
index d53fa060..84163a7e 100644
--- a/src/bindings/libunicode.nim
+++ b/src/bindings/libunicode.nim
@@ -11,6 +11,10 @@ type
   UnicodeNormalizationEnum* {.size: sizeof(cint).} = enum
     UNICODE_NFC, UNICODE_NFD, UNICODE_NKFC, UNICODE_NKFD
 
+{.passC: "-Ilib/".}
+
+{.push header: "quickjs/libunicode.h", importc.}
+
 proc cr_init*(cr: ptr CharRange, mem_opaque: pointer,
               realloc_func: DynBufReallocFunc) {.importc.}
 
@@ -21,3 +25,4 @@ proc unicode_normalize*(pdst: ptr ptr uint32, src: ptr uint32, src_len: cint,
                         realloc_func: DynBufReallocFunc): cint {.importc.}
 
 proc unicode_general_category*(cr: ptr CharRange, gc_name: cstring): cint {.importc.}
+{.pop.}