Implement var proc

This commit is contained in:
Ganesh Viswanathan 2019-10-16 21:25:31 -05:00
commit 8dc327d02b
3 changed files with 28 additions and 10 deletions

View file

@ -1,6 +1,6 @@
import os
import nimterop/[cimport, build, paths]
import nimterop/[cimport, build]
const
baseDir = getProjectCacheDir("nimterop" / "tests" / "pcre")
@ -33,3 +33,8 @@ cPlugin:
cImport(pcreH, dynlib="dynpcre")
echo version()
proc my_malloc(a1: cuint) {.cdecl.} =
discard
malloc = my_malloc