rawEcho hack for kwin target
This commit is contained in:
parent
5a31bc8274
commit
9598d42882
1 changed files with 11 additions and 1 deletions
|
|
@ -299,7 +299,17 @@ type
|
||||||
setAttribute*: proc (name, value: cstring) {.nimcall.}
|
setAttribute*: proc (name, value: cstring) {.nimcall.}
|
||||||
setAttributeNode*: proc (attr: ref TNode) {.nimcall.}
|
setAttributeNode*: proc (attr: ref TNode) {.nimcall.}
|
||||||
|
|
||||||
when defined(nodejs):
|
when defined(kwin):
|
||||||
|
proc rawEcho {.compilerproc, nostackframe.} =
|
||||||
|
asm """
|
||||||
|
var buf = "";
|
||||||
|
for (var i = 0; i < arguments.length; ++i) {
|
||||||
|
buf += `toEcmaStr`(arguments[i]);
|
||||||
|
}
|
||||||
|
print(buf);
|
||||||
|
"""
|
||||||
|
|
||||||
|
elif defined(nodejs):
|
||||||
proc ewriteln(x: cstring) = log(x)
|
proc ewriteln(x: cstring) = log(x)
|
||||||
|
|
||||||
proc rawEcho {.compilerproc, nostackframe.} =
|
proc rawEcho {.compilerproc, nostackframe.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue