Add auxiliary macro _()

This commit is contained in:
Stefano Sanfilippo 2014-11-24 23:53:26 +01:00
parent af934dfea8
commit aa122fd7a0

2
main.c
View File

@ -12,6 +12,8 @@ void yyerror(const char *message) {
exit(1); exit(1);
} }
#define _(...) emit(__VA_ARGS__, NULL);
void emit(const char *text, ...) { void emit(const char *text, ...) {
va_list args; va_list args;
va_start(args, text); va_start(args, text);