diff options
author | Zahary Karadjov <zahary@gmail.com> | 2011-12-15 18:39:44 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-03-14 21:00:42 +0200 |
commit | e5bd3b5b97e473efa90b08a9042a58bc6c9595a0 (patch) | |
tree | 469f839af0ce61f46691de331a30d06f506e8b87 /lib/system | |
parent | 1d8ff40f5679d3ddfa10a89b0333a0132ee1e1b2 (diff) | |
download | Nim-e5bd3b5b97e473efa90b08a9042a58bc6c9595a0.tar.gz |
bootstraps fine with overloadable templates
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/excpt.nim | 2 | ||||
-rwxr-xr-x | lib/system/gc.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 8260ba725..8ffca90fb 100755 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -251,7 +251,7 @@ when defined(endb): dbgAborting: bool # whether the debugger wants to abort proc signalHandler(sig: cint) {.exportc: "signalHandler", noconv.} = - template processSignal(s, action: expr) = + template processSignal(s, action: expr) {.immediate.} = if s == SIGINT: action("SIGINT: Interrupted by Ctrl-C.\n") elif s == SIGSEGV: action("SIGSEGV: Illegal storage access. (Attempt to read from nil?)\n") diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 31f0fd022..f01e9c04a 100755 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -170,7 +170,7 @@ when traceGC: cfprintf(cstdout, "Allocations: %ld; ZCT freed: %ld; CYC freed: %ld\n", e, z, y) -template gcTrace(cell, state: expr): stmt = +template gcTrace(cell, state: expr): stmt {.immediate.} = when traceGC: traceCell(cell, state) # ----------------------------------------------------------------------------- |