c3lang / c3c

Compiler for the C3 language

Home Page:https://c3-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Named compile-time arguments

cbuttner opened this issue · comments

Is this a possibility?

macro foo($bar, $Type) {}
fn void bar() {
  foo(.$bar = 1, .$Type = int);
}

Yes, that should work.

You can now test this on latest.

Looks good.