New template fpRadix instead of the exported var FP_RADIX
This commit is contained in:
parent
9c113b5264
commit
cf1a801e31
1 changed files with 3 additions and 1 deletions
|
|
@ -102,7 +102,9 @@ proc feupdateenv*(envp: ptr Tfenv): cint {.importc, header: "<fenv.h>".}
|
||||||
## represented by object pointed to by `envp` and raise exceptions
|
## represented by object pointed to by `envp` and raise exceptions
|
||||||
## according to saved exceptions.
|
## according to saved exceptions.
|
||||||
|
|
||||||
var FP_RADIX* {. importc: "FLT_RADIX" header: "<float.h>" .} : int
|
var FP_RADIX_INTERNAL {. importc: "FLT_RADIX" header: "<float.h>" .} : int
|
||||||
|
|
||||||
|
template fpRadix* : int = FLT_RADIX_INTERNAL
|
||||||
## The (integer) value of the radix used to represent any floating
|
## The (integer) value of the radix used to represent any floating
|
||||||
## point type on the architecture used to build the program.
|
## point type on the architecture used to build the program.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue