mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user