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

14 lines
196 B
Perl

local mymacro = macro(function(a)
a = a:asvalue()
print(a, terralib.issymbol(a), terralib.unsafetypeofsymbol(a))
return {}
end)
terra foo(a : int)
mymacro(a)
end
foo:compile()