summary refs log tree commit diff stats
path: root/compiler/pragmas.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-07-12 21:05:33 +0200
committerAraq <rumpf_a@web.de>2019-07-12 21:53:46 +0200
commit423e8cca91d06983fd0bd65419c00a6ae6da2d80 (patch)
tree9e0e56b41bb21df037ed797acfb192a8aef1106e /compiler/pragmas.nim
parent416ba133ad1e62cc8ce7241c85e89d5707b5736f (diff)
downloadNim-423e8cca91d06983fd0bd65419c00a6ae6da2d80.tar.gz
newruntime: refchecks:on|off switch
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r--compiler/pragmas.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index 938881842..9e3976e73 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -434,6 +434,8 @@ proc processPush(c: PContext, n: PNode, start: int) =
   # If stacktrace is disabled globally we should not enable it
   if optStackTrace notin c.optionStack[0].options:
     c.config.options.excl(optStackTrace)
+  when defined(debugOptions):
+    echo c.config $ n.info, " PUSH config is now ", c.config.options
 
 proc processPop(c: PContext, n: PNode) =
   if c.optionStack.len <= 1:
@@ -443,6 +445,8 @@ proc processPop(c: PContext, n: PNode) =
     c.config.notes = c.optionStack[^1].notes
     c.features = c.optionStack[^1].features
     c.optionStack.setLen(c.optionStack.len - 1)
+  when defined(debugOptions):
+    echo c.config $ n.info, " POP config is now ", c.config.options
 
 proc processDefine(c: PContext, n: PNode) =
   if (n.kind in nkPragmaCallKinds and n.len == 2) and (n[1].kind == nkIdent):