diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-02-01 15:39:56 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-02-01 23:39:40 +0100 |
commit | f04d21f2793933f9b9a54ef2d67dc277e53a0c67 (patch) | |
tree | c51450738683304898e24a3065e4e9898a43c86e /lib/system/nimscript.nim | |
parent | 5565b9ef10f5022ea1bdf84fd40c1bca4a6e02e8 (diff) | |
download | Nim-f04d21f2793933f9b9a54ef2d67dc277e53a0c67.tar.gz |
refactoring: explict config state instead of globals
Diffstat (limited to 'lib/system/nimscript.nim')
-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 |