blob: 81f9b53ae12552dd710819235a24cad0f558750b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Test the new ``emit`` pragma:
{.emit: """
static int cvariable = 420;
""".}
proc embedsC() {.pure.} =
var nimrodVar = 89
{.emit: """fprintf(stdout, "%d\n", cvariable + (int)`nimrodVar`);""".}
embedsC()
|