]> git.saurik.com Git - cycript.git/commitdiff
Simplified CYMessage::Replace using $L.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 27 Oct 2009 22:46:22 +0000 (22:46 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 27 Oct 2009 22:46:22 +0000 (22:46 +0000)
ObjectiveC/Replace.mm

index 35ba2667768b92aec905869104f6196129f59079..e25ff8625ac4eb9090c5d439ae51dafb4027b41d 100644 (file)
@@ -95,7 +95,7 @@ CYStatement *CYMessage::Replace(CYContext &context, bool replace) const { $T(NUL
             $V(instance_ ? "$cyc" : "$cym"),
             cyn,
             $N2($V("Functor"), $F(NULL, $P2("self", "_cmd", parameters_->Parameters(context)), $$->*
             $V(instance_ ? "$cyc" : "$cym"),
             cyn,
             $N2($V("Functor"), $F(NULL, $P2("self", "_cmd", parameters_->Parameters(context)), $$->*
-                $ CYVar($ CYDeclarations($ CYDeclaration($I("$cyr"), $N2($V("Super"), self, _class))))->*
+                $ CYVar($L1($L($I("$cyr"), $N2($V("Super"), self, _class))))->*
                 $ CYReturn($C1($M($F(NULL, NULL, code_), $S("call")), self))
             ), cyt),
             cyt
                 $ CYReturn($C1($M($F(NULL, NULL, code_), $S("call")), self))
             ), cyt),
             cyt