Skip more syms for cast expressions on Nim < 1.0.0

This commit is contained in:
Joey Yakimowich-Payne 2020-04-20 14:17:17 -06:00
commit 1b8ba144d7
3 changed files with 6 additions and 3 deletions

View file

@ -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)

View file

@ -460,4 +460,4 @@ checkPragmas(nested, pHeaderImpBy)
when defined(HEADER):
assert sitest1(5) == 10
assert sitest1(10) == 20
assert sitest1(10) == 20

View file

@ -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()