|
@@ -1,11 +1,11 @@
|
|
|
#include "func-exit.h"
|
|
|
|
|
|
-namespace aFunit {
|
|
|
- aFuncore::Function::CallFunction *ExitFunction::getCallFunction(const aFuncore::Code::ByteCode *code, aFuncore::Inter &inter) {
|
|
|
+namespace aFuncore {
|
|
|
+ Function::CallFunction *ExitFunction::getCallFunction(const Code::ByteCode *code, Inter &inter) {
|
|
|
return dynamic_cast<CallFunction *>(new CallFunc(code, inter));
|
|
|
}
|
|
|
|
|
|
- ExitFunction::CallFunc::CallFunc(const aFuncore::Code::ByteCode *code_, aFuncore::Inter &inter_) : call_code{code_}, inter{inter_} {
|
|
|
+ ExitFunction::CallFunc::CallFunc(const Code::ByteCode *code_, Inter &inter_) : call_code{code_}, inter{inter_} {
|
|
|
acl = new std::list<ArgCodeList>;
|
|
|
if (code_ != nullptr) {
|
|
|
auto arg_code = code_->getSon()->toNext();
|
|
@@ -16,9 +16,9 @@ namespace aFunit {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- std::list<aFuncore::Function::CallFunction::ArgCodeList> *ExitFunction::CallFunc::getArgCodeList(aFuncore::Inter &inter_,
|
|
|
- aFuncore:: Activation &activation,
|
|
|
- const aFuncore::Code::ByteCode *call) {
|
|
|
+ std::list<Function::CallFunction::ArgCodeList> *ExitFunction::CallFunc::getArgCodeList(Inter &inter_,
|
|
|
+ Activation &activation,
|
|
|
+ const Code::ByteCode *call) {
|
|
|
return acl;
|
|
|
}
|
|
|
|
|
@@ -26,11 +26,11 @@ namespace aFunit {
|
|
|
inter.setInterExit();
|
|
|
auto &stream = inter.getActivation()->getDownStream();
|
|
|
if (acl->empty()) {
|
|
|
- auto none = new aFuncore::Object("None", inter);
|
|
|
- stream.pushMessage("NORMAL", new aFuncore::NormalMessage(none));
|
|
|
+ auto none = new Object("None", inter);
|
|
|
+ stream.pushMessage("NORMAL", new NormalMessage(none));
|
|
|
none->delReference();
|
|
|
} else
|
|
|
- stream.pushMessage("NORMAL", new aFuncore::NormalMessage(acl->begin()->getObject()));
|
|
|
+ stream.pushMessage("NORMAL", new NormalMessage(acl->begin()->getObject()));
|
|
|
|
|
|
}
|
|
|
|