Make math.isNaN,copySign,etc available on objc (#24025)

fixes #23922

---------

Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
This commit is contained in:
lit
2024-09-05 14:21:30 +08:00
committed by GitHub
parent 99f4cfa438
commit e265b3dfdd

View File

@@ -64,7 +64,7 @@ when defined(nimPreviewSlimSystem):
import std/assertions
when defined(c) or defined(cpp):
when not defined(js) and not defined(nimscript): # C
proc c_isnan(x: float): bool {.importc: "isnan", header: "<math.h>".}
# a generic like `x: SomeFloat` might work too if this is implemented via a C macro.