diff semiconginev2/core/utils.nim @ 1234:841e12f33c47

add: text & font rendering, not tested yet
author sam <sam@basx.dev>
date Sat, 20 Jul 2024 00:03:57 +0700
parents 56781cc0fc7c
children
line wrap: on
line diff
--- a/semiconginev2/core/utils.nim	Fri Jul 19 21:25:42 2024 +0700
+++ b/semiconginev2/core/utils.nim	Sat Jul 20 00:03:57 2024 +0700
@@ -17,6 +17,9 @@
 func ToCPointer*[T](list: openArray[T]): ptr T =
   if list.len > 0: addr(list[0]) else: nil
 
+# required for some external libraries
+proc nativeFree(p: pointer) {.importc: "free".}
+
 proc StaticExecChecked*(command: string, input = ""): string {.compileTime.} =
   let (output, exitcode) = gorgeEx(
       command = command,