I tries to rewrite my project, called progress: call to power (game based on 
Freeciv) to nim, because I have memory problems (heap overlaps stack, so one 
function jump outside one's bound).

I tries different approach. First was adding nim.cfg given bellow:

cincludes:../c-files/common

clibdir:../c-files/common

app:lib

output:./libcommon

But it doesn't work.

Next try was by write {.compiletime.} procedure. I use walkDir from us module 
with pattern *.c, but I cannot use compile with variable, because this variable 
doesn't been known at compile time (I called my function from normal code, so 
probably there's a problem - is there any way to call it at compile time?) 

Reply via email to