* compiler/vmhooks: add getVar to allow vmops with var params * addFloat vmops with var param * cgen now renders float32 literals in c backend using roundtrip float to string
This commit is contained in:
parent
a8b3e7c059
commit
cf0cf32d27
21 changed files with 286 additions and 199 deletions
|
|
@ -19,9 +19,9 @@ proc repr*(x: uint64): string {.noSideEffect.} =
|
|||
## converted to a decimal string.
|
||||
$x #Calls `$` from system/strmantle.nim
|
||||
|
||||
proc repr*(x: float): string {.magic: "FloatToStr", noSideEffect.}
|
||||
## repr for a float argument. Returns `x`
|
||||
## converted to a decimal string.
|
||||
proc repr*(x: float): string =
|
||||
## Same as $x
|
||||
$x
|
||||
|
||||
proc repr*(x: bool): string {.magic: "BoolToStr", noSideEffect.}
|
||||
## repr for a boolean argument. Returns `x`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue