diff --git a/src/Script.cpp b/src/Script.cpp index 798483b..ecb9f92 100644 --- a/src/Script.cpp +++ b/src/Script.cpp @@ -11,7 +11,7 @@ #include "Parser/Parser.hpp" #include "Binder/Binder.hpp" -inline Porygon::Script* Porygon::Script::Create(const u16string& script) { +Porygon::Script* Porygon::Script::Create(const u16string& script) { return new Script(script); } @@ -65,7 +65,7 @@ void Porygon::Script::Parse(const u16string& script) { delete parseResult; } -inline EvalValue *Porygon::Script::GetVariable(const u16string &key) { +EvalValue *Porygon::Script::GetVariable(const u16string &key) { return _scriptVariables -> at(HashedString::CreateLookup(key)).get(); } @@ -74,7 +74,7 @@ bool Porygon::Script::HasVariable(const u16string &key) { return f != _scriptVariables->end(); } -inline EvalValue *Porygon::Script::GetLastValue() { +EvalValue *Porygon::Script::GetLastValue() { return _evaluator->GetLastValue(); } @@ -83,7 +83,7 @@ bool Porygon::Script::HasFunction(const u16string &key) { return f != _scriptVariables->end() && f.operator->()->second->GetTypeClass() == TypeClass ::Function; } -inline shared_ptr Porygon::Script::CallFunction(const u16string &key, const vector& variables) { +shared_ptr Porygon::Script::CallFunction(const u16string &key, const vector& variables) { auto var = (GenericFunctionEvalValue*)GetVariable(key); return this->_evaluator->EvaluateFunction(var, variables); }