Skip to content
brett hartshorn edited this page Apr 8, 2015 · 4 revisions

Macro functions are defined inline with special with blocks. Below C++ template syntax is used, and assigned to the macro function T.

with T as "std::vector<int>":
   v = new( T(1,2,3) )

https://github.com/rusthon/Rusthon/blob/master/examples/macro_templates.md

macro()

the builtin function macro allows you to inline a raw C++ macro string.

macro("FOOBAR()")

Sidebar

Clone this wiki locally