From: Jay Freeman (saurik) Date: Tue, 21 Jan 2014 19:22:00 +0000 (-0800) Subject: The field order in an Objective-C class matters. X-Git-Tag: v0.9.500~5 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/17f01b7a91f1ead2a411bc401a2fdfa4787cff0e?ds=sidebyside The field order in an Objective-C class matters. --- diff --git a/ObjectiveC/Replace.cpp b/ObjectiveC/Replace.cpp index 1f92319..5c77599 100644 --- a/ObjectiveC/Replace.cpp +++ b/ObjectiveC/Replace.cpp @@ -85,10 +85,10 @@ CYStatement *CYField::Replace(CYContext &context) const { $T(NULL) CYExpression *type($C0($M(typed_->Replace(context), $S("toString")))); return $ CYBlock($$->* - next_->Replace(context)->* $E($ CYAssign(cyt, type))->* $E($ CYAssign(cyn, $N1($V("Type"), cyt)))->* - $E($C5($V("class_addIvar"), $V("$cyc"), $S(typed_->identifier_->Word()), $M(cyn, $S("size")), $M(cyn, $S("alignment")), cyt)) + $E($C5($V("class_addIvar"), $V("$cyc"), $S(typed_->identifier_->Word()), $M(cyn, $S("size")), $M(cyn, $S("alignment")), cyt))->* + next_->Replace(context) ); }