fixes #569; C++ codegen works again
This commit is contained in:
parent
4d9b2f671a
commit
6cc06cd35d
5 changed files with 26 additions and 16 deletions
|
|
@ -759,7 +759,7 @@ else:
|
|||
# Used to traverse the stack and registers assuming
|
||||
# that 'setjmp' will save registers in the C stack.
|
||||
type PStackSlice = ptr array [0..7, pointer]
|
||||
var registers: C_JmpBuf
|
||||
var registers {.noinit.}: C_JmpBuf
|
||||
if c_setjmp(registers) == 0'i32: # To fill the C stack with registers.
|
||||
var max = cast[TAddress](gch.stackBottom)
|
||||
var sp = cast[TAddress](addr(registers))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue