threadvar alternative

This commit is contained in:
Araq 2011-05-09 22:29:29 +02:00
commit f717f1e628
4 changed files with 24 additions and 10 deletions

View file

@ -39,6 +39,8 @@ type
exc: ref E_Base # XXX only needed for bootstrapping; unused
context: C_JmpBuf
when hasThreadSupport: nil
var
excHandler {.threadvar, compilerproc.}: PSafePoint = nil
# list of exception handlers