From a89e1d9fd1eaa3cae55cbd274137672b570db544 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 6 Jan 2014 20:06:05 -0800 Subject: [PATCH] Cycript's C++11 lambda semantics require the &. --- Cycript.yy.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cycript.yy.in b/Cycript.yy.in index 0425b21..3f3fcce 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -1628,7 +1628,7 @@ TypedParameterListOpt ; PrimaryExpression - : "[" LexPushInOff LexSetRegExp "=" "]" LexPopIn "(" LexPushInOff TypedParameterListOpt ")" LexPopIn "->" ModifiedType BRACE LexPushInOff FunctionBody "}" LexPopIn { $$ = CYNew CYLambda($13, $9, $16); } + : "[" LexPushInOff LexSetRegExp "&" LexSetRegExp "]" LexPopIn "(" LexPushInOff TypedParameterListOpt ")" LexPopIn "->" ModifiedType BRACE LexPushInOff FunctionBody "}" LexPopIn { $$ = CYNew CYLambda($14, $10, $17); } ; /* }}} */ /* Cycript (C): Type Definitions {{{ */ -- 2.47.2