mirror of
https://github.com/sfall-team/int2ssl.git
synced 2026-07-27 16:52:42 -07:00
Don't generate spooky comment on imported procedures (closes #10)
- Delete some dead code
This commit is contained in:
-35
@@ -57,8 +57,6 @@ void COpcode::Serialize()
|
||||
throw std::exception();
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ((m_wOperator < O_OPERATOR) ||
|
||||
((m_wOperator >= O_END_OP) &&
|
||||
(m_wOperator != O_STRINGOP) &&
|
||||
@@ -102,39 +100,6 @@ void COpcode::Expect(uint16_t wOperator, bool bArgumentFound, uint32_t ulArgumen
|
||||
}
|
||||
}
|
||||
|
||||
void COpcode::Expect(int nCount, uint16_t pwOperators[])
|
||||
{
|
||||
Serialize();
|
||||
bool bFound = false;
|
||||
|
||||
for(int i = 0; i < nCount; i++)
|
||||
{
|
||||
if (m_wOperator == pwOperators[i])
|
||||
{
|
||||
bFound = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!bFound)
|
||||
{
|
||||
printf("Error: Unexpected opcode (");
|
||||
|
||||
for(int i = 0; i < nCount; i++)
|
||||
{
|
||||
if (i != 0)
|
||||
{
|
||||
printf(" or ");
|
||||
}
|
||||
|
||||
printf("0x%04X", pwOperators[i]);
|
||||
}
|
||||
|
||||
printf(" expected, but 0x%04X found)\n", m_wOperator);
|
||||
throw std::exception();
|
||||
}
|
||||
}
|
||||
|
||||
bool COpcode::HasArgument() const
|
||||
{
|
||||
return ((m_wOperator == O_STRINGOP) || (m_wOperator == O_FLOATOP) || (m_wOperator == O_INTOP));
|
||||
|
||||
Reference in New Issue
Block a user