fix noDecl => nodecl (#16760)

* fix noDecl => nodecl

* address comment

* disable flaky tests/stdlib/thttpclient.nim on freebsd
This commit is contained in:
Timothee Cour 2021-01-20 02:08:42 -08:00 • committed by GitHub
commit 14730d9d64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View file

@ -22,7 +22,7 @@ asm """
function print (text) { console.log (text); }
"""
proc consoleprint (str:cstring): void {.importc: "print", noDecl.}
proc consoleprint (str:cstring): void {.importc: "print", nodecl.}
proc print* (a: varargs[string, `$`]) = consoleprint "$1: $2" % [consolePrefix, join(a, " ")]
type CallbackProc {.importc.} = proc () : cstring