attempt to merge newtempl

This commit is contained in:
Araq 2013-12-24 14:04:18 +01:00
commit 83a0a31276
5 changed files with 646 additions and 6 deletions

View file

@ -280,7 +280,7 @@ when defined(endb):
when not defined(noSignalHandler):
proc signalHandler(sig: cint) {.exportc: "signalHandler", noconv.} =
template processSignal(s, action: expr) {.immediate.} =
template processSignal(s, action: expr) {.immediate, dirty.} =
if s == SIGINT: action("SIGINT: Interrupted by Ctrl-C.\n")
elif s == SIGSEGV:
action("SIGSEGV: Illegal storage access. (Attempt to read from nil?)\n")