Skip more syms for cast expressions on Nim < 1.0.0
This commit is contained in:
parent
ac646a9fea
commit
1b8ba144d7
3 changed files with 6 additions and 3 deletions
|
|
@ -499,4 +499,4 @@ proc parseCExpression*(state: NimState, code: string, name = ""): PNode =
|
|||
result = newNode(nkNone)
|
||||
except Exception as e:
|
||||
techo "UNEXPECTED EXCEPTION: ", e.msg
|
||||
result = newNode(nkNone)
|
||||
result = newNode(nkNone)
|
||||
|
|
|
|||
|
|
@ -460,4 +460,4 @@ checkPragmas(nested, pHeaderImpBy)
|
|||
|
||||
when defined(HEADER):
|
||||
assert sitest1(5) == 10
|
||||
assert sitest1(10) == 20
|
||||
assert sitest1(10) == 20
|
||||
|
|
|
|||
|
|
@ -13,7 +13,10 @@ when defined(windows):
|
|||
complex = object
|
||||
|
||||
static:
|
||||
cSkipSymbol @["mingw_choose_expr", "EXCEPTION_DEFINED", "COMPLEX_DEFINED", "matherr", "HUGE"]
|
||||
when (NimMajor, NimMinor, NimPatch) < (1, 0, 0):
|
||||
cSkipSymbol @["mingw_choose_expr", "EXCEPTION_DEFINED", "COMPLEX_DEFINED", "matherr", "HUGE", "FP_ILOGB0", "FP_ILOGBNAN"]
|
||||
else:
|
||||
cSkipSymbol @["mingw_choose_expr", "EXCEPTION_DEFINED", "COMPLEX_DEFINED", "matherr", "HUGE"]
|
||||
cDebug()
|
||||
cDisableCaching()
|
||||
cAddStdDir()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue