Remove immediate pragma (#11308)
* remove immediate from tests * remove immediate from the compiler
This commit is contained in:
parent
eb471acffb
commit
5b27b263fd
22 changed files with 53 additions and 116 deletions
|
|
@ -4209,9 +4209,9 @@ proc addQuoted*[T](s: var string, x: T) =
|
|||
s.addEscapedChar(x)
|
||||
s.add("'")
|
||||
# prevent temporary string allocation
|
||||
elif T is int and not defined(JS):
|
||||
elif T is SomeSignedInt and not defined(JS):
|
||||
s.addInt(x)
|
||||
elif T is float and not defined(JS):
|
||||
elif T is SomeFloat and not defined(JS):
|
||||
s.addFloat(x)
|
||||
elif compiles(s.add(x)):
|
||||
s.add(x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue