Removed STARTDEBUGDD
parent
0c21631c9c
commit
8a160961fc
|
@ -225,9 +225,6 @@ CBotInstr* CBotInstr::Compile(CBotToken* &p, CBotCStack* pStack)
|
||||||
case ID_THROW:
|
case ID_THROW:
|
||||||
return CBotThrow::Compile(p, pStack);
|
return CBotThrow::Compile(p, pStack);
|
||||||
|
|
||||||
case ID_DEBUGDD:
|
|
||||||
return CBotStartDebugDD::Compile(p, pStack);
|
|
||||||
|
|
||||||
case ID_INT:
|
case ID_INT:
|
||||||
return CBotInt::Compile(p, pStack);
|
return CBotInt::Compile(p, pStack);
|
||||||
|
|
||||||
|
|
|
@ -627,19 +627,6 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class CBotStartDebugDD : public CBotInstr
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
|
|
||||||
public:
|
|
||||||
CBotStartDebugDD();
|
|
||||||
~CBotStartDebugDD();
|
|
||||||
static
|
|
||||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
|
||||||
bool Execute(CBotStack* &pj) override;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
class CBotIf : public CBotInstr
|
class CBotIf : public CBotInstr
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -487,8 +487,6 @@ private:
|
||||||
long m_Ident; // associated identifier
|
long m_Ident; // associated identifier
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CBotString m_DebugVarStr; // end of a debug
|
|
||||||
bool m_bDebugDD; // idem déclanchable par robot \TODO ???
|
|
||||||
bool m_bCompileClass;
|
bool m_bCompileClass;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -33,7 +33,6 @@ CBotProgram::CBotProgram()
|
||||||
|
|
||||||
m_ErrorCode = 0;
|
m_ErrorCode = 0;
|
||||||
m_Ident = 0;
|
m_Ident = 0;
|
||||||
m_bDebugDD = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CBotProgram::CBotProgram(CBotVar* pInstance)
|
CBotProgram::CBotProgram(CBotVar* pInstance)
|
||||||
|
@ -46,7 +45,6 @@ CBotProgram::CBotProgram(CBotVar* pInstance)
|
||||||
|
|
||||||
m_ErrorCode = 0;
|
m_ErrorCode = 0;
|
||||||
m_Ident = 0;
|
m_Ident = 0;
|
||||||
m_bDebugDD = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,6 @@ const std::map<EID,const char *> CBotString::s_keywordString =
|
||||||
{ID_STATIC, "static"},
|
{ID_STATIC, "static"},
|
||||||
{ID_PROTECTED, "protected"},
|
{ID_PROTECTED, "protected"},
|
||||||
{ID_PRIVATE, "private"},
|
{ID_PRIVATE, "private"},
|
||||||
{ID_DEBUGDD, "STARTDEBUGDD"},
|
|
||||||
{ID_INT, "int"},
|
{ID_INT, "int"},
|
||||||
{ID_FLOAT, "float"},
|
{ID_FLOAT, "float"},
|
||||||
{ID_BOOLEAN, "boolean"},
|
{ID_BOOLEAN, "boolean"},
|
||||||
|
|
|
@ -1259,35 +1259,3 @@ void CBotThrow :: RestoreState(CBotStack* &pj, bool bMain)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
CBotStartDebugDD::CBotStartDebugDD()
|
|
||||||
{
|
|
||||||
name = "CBotStartDebugDD"; // debug
|
|
||||||
}
|
|
||||||
|
|
||||||
CBotStartDebugDD::~CBotStartDebugDD()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
CBotInstr* CBotStartDebugDD::Compile(CBotToken* &p, CBotCStack* pStack)
|
|
||||||
{
|
|
||||||
|
|
||||||
if (!IsOfType(p, ID_DEBUGDD)) return nullptr; // should never happen
|
|
||||||
|
|
||||||
return new CBotStartDebugDD(); // creates the object
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// execution of instruction "throw"
|
|
||||||
|
|
||||||
bool CBotStartDebugDD :: Execute(CBotStack* &pj)
|
|
||||||
{
|
|
||||||
CBotProgram* p = pj->GetBotCall();
|
|
||||||
p->m_bDebugDD = true;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,6 @@ enum EID
|
||||||
ID_STATIC,
|
ID_STATIC,
|
||||||
ID_PROTECTED,
|
ID_PROTECTED,
|
||||||
ID_PRIVATE,
|
ID_PRIVATE,
|
||||||
ID_DEBUGDD,
|
|
||||||
ID_INT,
|
ID_INT,
|
||||||
ID_FLOAT,
|
ID_FLOAT,
|
||||||
ID_BOOLEAN,
|
ID_BOOLEAN,
|
||||||
|
|
Loading…
Reference in New Issue