mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
Make Runtime::getPC and setPC inline
This commit is contained in:
parent
46b4427d2e
commit
0ab3090385
@ -6,11 +6,6 @@
|
||||
|
||||
namespace Interpreter
|
||||
{
|
||||
int Runtime::getPC() const
|
||||
{
|
||||
return mPC;
|
||||
}
|
||||
|
||||
int Runtime::getIntegerLiteral(int index) const
|
||||
{
|
||||
if (index < 0 || index >= static_cast<int>(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);
|
||||
|
@ -21,7 +21,7 @@ namespace Interpreter
|
||||
std::vector<Data> 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);
|
||||
|
Loading…
Reference in New Issue
Block a user