]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l.in
Revert a minor style change that broke ';function'.
[cycript.git] / Cycript.l.in
index 17f0013ed315569abe33a9126f342c36d1c82d54..54724177d4d42759f8723ec1e899fe7d15ba65dd 100644 (file)
@@ -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)