17 ms·
> To compile Cello requires a C99 compatible C compiler. In fact, it fails to compile with -std=c99, it seems to require GNU extenstions, that's why they have
by zserge 12y ago
> To compile Cello requires a C99 compatible C compiler.
In fact, it fails to compile with -std=c99, it seems to require GNU extenstions, that's why they have -std=gnu99 in their Makefile. They use ##__VA_ARGS__, which is not in the C99 and AFAIK there is no portable way to make a workaround.
- DSMan195276 12y agoYou're completely right, this definitely uses GNU extensions. A note about the __VA_ARGS__ detail - You can portably avoid it in a lot of cases if you plan ahead and allow __VA_ARGS__ to suck-up one extra always-provided argument, but it's not as clean as the GNU extension and can't always be done.
- tedunangst 12y agoAlso looks like it uses nested functions.