1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Make Runtime::getPC and setPC inline

This commit is contained in:
elsid 2023-01-10 04:14:13 +01:00
parent 46b4427d2e
commit 0ab3090385
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625
2 changed files with 2 additions and 12 deletions

View File

@ -6,11 +6,6 @@
namespace Interpreter namespace Interpreter
{ {
int Runtime::getPC() const
{
return mPC;
}
int Runtime::getIntegerLiteral(int index) const int Runtime::getIntegerLiteral(int index) const
{ {
if (index < 0 || index >= static_cast<int>(mCode[1])) if (index < 0 || index >= static_cast<int>(mCode[1]))
@ -68,11 +63,6 @@ namespace Interpreter
mStack.clear(); mStack.clear();
} }
void Runtime::setPC(int PC)
{
mPC = PC;
}
void Runtime::push(const Data& data) void Runtime::push(const Data& data)
{ {
mStack.push_back(data); mStack.push_back(data);

View File

@ -21,7 +21,7 @@ namespace Interpreter
std::vector<Data> mStack; std::vector<Data> mStack;
public: public:
int getPC() const; int getPC() const { return mPC; }
///< return program counter. ///< return program counter.
int getIntegerLiteral(int index) const; int getIntegerLiteral(int index) const;
@ -36,7 +36,7 @@ namespace Interpreter
void clear(); void clear();
void setPC(int PC); void setPC(int value) { mPC = value; }
///< set program counter. ///< set program counter.
void push(const Data& data); void push(const Data& data);