graphitemaster / gmqcc

An Improved Quake C Compiler
Other
163 stars 29 forks source link

First variadic parameter is always 0 if there are no other parameters #165

Open TimePath opened 8 years ago

TimePath commented 8 years ago
void f(...) {
    entity e = ...(entity, 0);
    // e is always world
}
graphitemaster commented 7 years ago

I can't even get this code to compile. Is there a special switch to enable variadic parameters?

Blub commented 7 years ago

-std=gmqcc should allow it by default (or -fvariadic-args)