diff options
Diffstat (limited to 'lib/system/jssys.nim')
-rw-r--r-- | lib/system/jssys.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim index 1c43bfdc7..850dd1e11 100644 --- a/lib/system/jssys.nim +++ b/lib/system/jssys.nim @@ -620,4 +620,9 @@ proc isObj(obj, subclass: PNimType): bool {.compilerproc.} = x = x.base return true +proc addChar(x: string, c: char) {.compilerproc, noStackFrame.} = + asm """ + `x`[`x`.length-1] = `c`; `x`.push(0); + """ + {.pop.} |