diff --git a/components/interpreter/runtime.cpp b/components/interpreter/runtime.cpp index d14f1cc31f..f82b0fb3d6 100644 --- a/components/interpreter/runtime.cpp +++ b/components/interpreter/runtime.cpp @@ -6,11 +6,6 @@ namespace Interpreter { - int Runtime::getPC() const - { - return mPC; - } - int Runtime::getIntegerLiteral(int index) const { if (index < 0 || index >= static_cast(mCode[1])) @@ -68,11 +63,6 @@ namespace Interpreter mStack.clear(); } - void Runtime::setPC(int PC) - { - mPC = PC; - } - void Runtime::push(const Data& data) { mStack.push_back(data); diff --git a/components/interpreter/runtime.hpp b/components/interpreter/runtime.hpp index dfceaeb36f..77c65d4d67 100644 --- a/components/interpreter/runtime.hpp +++ b/components/interpreter/runtime.hpp @@ -21,7 +21,7 @@ namespace Interpreter std::vector mStack; public: - int getPC() const; + int getPC() const { return mPC; } ///< return program counter. int getIntegerLiteral(int index) const; @@ -36,7 +36,7 @@ namespace Interpreter void clear(); - void setPC(int PC); + void setPC(int value) { mPC = value; } ///< set program counter. void push(const Data& data);