X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c2c9f509581b8c8e78b5745498c782ef1affd51a..15b88a33189cbd3da91900194d8e5c81252f8a4d:/ObjectiveC/Replace.cpp?ds=inline diff --git a/ObjectiveC/Replace.cpp b/ObjectiveC/Replace.cpp index 9d2d1ab..748fc6f 100644 --- a/ObjectiveC/Replace.cpp +++ b/ObjectiveC/Replace.cpp @@ -104,6 +104,10 @@ CYSelectorPart *CYMessageParameter::SelectorPart(CYContext &context) const { $T( return tag_ == NULL ? next : $ CYSelectorPart(tag_, name_ != NULL, next); } +CYExpression *CYBox::Replace(CYContext &context) { + return $C1($M($V("Instance"), $S("box")), value_); +} + CYStatement *CYProtocol::Replace(CYContext &context) const { $T(NULL) return $ CYBlock($$->* next_->Replace(context)->* @@ -154,5 +158,5 @@ CYExpression *CYSendDirect::Replace(CYContext &context) { } CYExpression *CYSendSuper::Replace(CYContext &context) { - return $ CYSendDirect($V("cyr"), arguments_); + return $ CYSendDirect($V("$cyr"), arguments_); }