fixes DLL generation

This commit is contained in:
Araq 2014-04-21 03:44:48 +02:00
commit 5e839d50b4
7 changed files with 56 additions and 49 deletions

View file

@ -44,9 +44,15 @@ var
# a global variable for the root of all try blocks
currException {.rtlThreadVar.}: ref E_Base
proc pushFrame(s: PFrame) {.compilerRtl, inl, exportc: "nimFrame".} =
s.prev = framePtr
framePtr = s
when defined(nimRequiresNimFrame):
proc nimFrame(s: PFrame) {.compilerRtl, inl, exportc: "nimFrame".} =
s.prev = framePtr
framePtr = s
else:
proc pushFrame(s: PFrame) {.compilerRtl, inl, exportc: "nimFrame".} =
# XXX only for backwards compatibility
s.prev = framePtr
framePtr = s
proc popFrame {.compilerRtl, inl.} =
framePtr = framePtr.prev