From f04d21f2793933f9b9a54ef2d67dc277e53a0c67 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 1 Feb 2017 15:39:56 +0100 Subject: refactoring: explict config state instead of globals --- lib/system/nimscript.nim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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 -- cgit 1.4.1-2-gfad0