Remove user defined constructor for Runtime

7220-lua-add-a-general-purpose-lexical-parser
elsid 2 years ago
parent 9c8df09475
commit 46b4427d2e
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -6,14 +6,6 @@
namespace Interpreter
{
Runtime::Runtime()
: mContext(nullptr)
, mCode(nullptr)
, mCodeSize(0)
, mPC(0)
{
}
int Runtime::getPC() const
{
return mPC;

@ -14,15 +14,13 @@ namespace Interpreter
class Runtime
{
Context* mContext;
const Type_Code* mCode;
int mCodeSize;
int mPC;
Context* mContext = nullptr;
const Type_Code* mCode = nullptr;
int mCodeSize = 0;
int mPC = 0;
std::vector<Data> mStack;
public:
Runtime();
int getPC() const;
///< return program counter.

Loading…
Cancel
Save