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:
parent
46b4427d2e
commit
0ab3090385
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user