c3c icon indicating copy to clipboard operation
c3c copied to clipboard

Named compile-time arguments

Open cbuttner opened this issue 1 year ago • 2 comments

Is this a possibility?

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

cbuttner avatar Feb 26 '24 13:02 cbuttner

Yes, that should work.

lerno avatar Feb 26 '24 14:02 lerno

You can now test this on latest.

lerno avatar Feb 26 '24 16:02 lerno

Looks good.

cbuttner avatar Apr 09 '24 13:04 cbuttner