Files
linguist/samples/Terra/macrotest.t
2016-01-28 11:22:27 +07:00

9 lines
133 B
Perl

C = terralib.includecstring [[
#define foo 1
#define foo2 -3.4
#undef foo
#define foo 3
]]
assert(C.foo == 3)
assert(C.foo2 == -3.4)