Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- roc printf(frmt: cstring) {.varargs, importc, header: "<stdio.h>", cdecl.}
- type Foo = object
- x, y:int
- var a {.codegenDecl: "const $# $# = {5, 6}".}: Foo
- printf("const FOO {%d, %d}\n", a.x, a.y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement