This commit is contained in:
Araq
2013-08-01 00:16:29 +02:00
parent 3ae6043e7e
commit 9589acd00e
2 changed files with 2 additions and 1 deletions

View File

@@ -701,6 +701,7 @@ proc genTry(p: BProc, t: PNode, d: var TLoc) =
#
if not isEmptyType(t.typ) and d.k == locNone:
getTemp(p, t.typ, d)
discard lists.IncludeStr(p.module.headerFiles, "<setjmp.h>")
genLineDir(p, t)
var safePoint = getTempName()
discard cgsym(p.module, "E_Base")

View File

@@ -31,7 +31,7 @@ type
C_TextFileStar = ptr CTextFile
C_BinaryFileStar = ptr CBinaryFile
C_JmpBuf {.importc: "jmp_buf", header: "<setjmp.h>".} = array[0..31, int]
C_JmpBuf {.importc: "jmp_buf", header: "<setjmp.h>".} = object
var
c_stdin {.importc: "stdin", nodecl.}: C_TextFileStar