From: Jay Freeman (saurik) Date: Wed, 12 Sep 2012 05:49:07 +0000 (-0700) Subject: Revert a minor style change that broke ';function'. X-Git-Tag: v0.9.459~17 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/153c6dec5130531c908f623f585cf1aa32172cee?ds=inline Revert a minor style change that broke ';function'. --- diff --git a/Cycript.l.in b/Cycript.l.in index 17f0013..5472417 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -30,12 +30,14 @@ typedef cy::parser::token tk; #define YY_EXTRA_TYPE CYDriver * +// do /not/ fold token to the return: this is a macro and the ordering is dependent #define F(value, highlight) do { \ + int token(value); \ yyextra->no_.AtImplementation = false; \ yyextra->no_.Function = false; \ yyextra->no_.OpenBrace = false; \ yylval->highlight_ = highlight; \ - return value; \ + return token; \ } while (false) #define A new($pool)