diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/nimscript.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim index f675a9472..73bb91fef 100644 --- a/lib/system/nimscript.nim +++ b/lib/system/nimscript.nim @@ -293,6 +293,11 @@ template task*(name: untyped; description: string; body: untyped): untyped = setCommand "nop" `name Task`() +proc cppDefine*(define: string) = + ## tell Nim that ``define`` is a C preprocessor ``#define`` and so always + ## needs to be mangled. + builtin + when not defined(nimble): # nimble has its own implementation for these things. var |