This commit is contained in:
Araq
2014-12-17 01:43:22 +01:00
parent e9619d7278
commit 02cc9633eb

View File

@@ -38,7 +38,11 @@ proc raiseInvalidFormat(msg: string) {.noinline.} =
type
TFormatParser = object {.pure, final.}
f: cstring
when defined(js):
f: string # we rely on the '\0' terminator
# which JS's native string doesn't have
else:
f: cstring
num, i, lineLen: int
template call(x: stmt) {.immediate.} =