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 namespace Interpreter
{ {
Runtime::Runtime()
: mContext(nullptr)
, mCode(nullptr)
, mCodeSize(0)
, mPC(0)
{
}
int Runtime::getPC() const int Runtime::getPC() const
{ {
return mPC; return mPC;

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

Loading…
Cancel
Save