Bug fix for printing on output generated code. Also display label indexes when dumping the code.
git-svn-id: http://voip.null.ro/svn/yate@5450 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
7c8b2d4c38
commit
da6852cc02
|
@ -1421,11 +1421,6 @@ int ExpEvaluator::evaluate(Array& results, unsigned int index, GenObject* contex
|
|||
|
||||
void ExpEvaluator::dump(const ExpOperation& oper, String& res) const
|
||||
{
|
||||
const char* name = getOperator(oper.opcode());
|
||||
if (name) {
|
||||
res << name;
|
||||
return;
|
||||
}
|
||||
switch (oper.opcode()) {
|
||||
case OpcPush:
|
||||
case OpcCopy:
|
||||
|
@ -1441,7 +1436,13 @@ void ExpEvaluator::dump(const ExpOperation& oper, String& res) const
|
|||
res << oper.name() << "(" << (int)oper.number() << ")";
|
||||
break;
|
||||
default:
|
||||
res << "[" << oper.opcode() << "]";
|
||||
{
|
||||
const char* name = getOperator(oper.opcode());
|
||||
if (name)
|
||||
res << name;
|
||||
else
|
||||
res << "[" << oper.opcode() << "]";
|
||||
}
|
||||
if (oper.number() && oper.isInteger())
|
||||
res << "(" << (int)oper.number() << ")";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue