Merge pull request #1302 from ethereum/lll-panic

LLL: introduce panic keyword
This commit is contained in:
chriseth 2016-10-28 11:44:46 +02:00 committed by GitHub
commit e85390cc60

View File

@ -580,6 +580,10 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
m_asm.append(i.m_asm);
m_asm.popTo(1);
}
else if (us == "PANIC")
{
m_asm.appendJump(m_asm.errorTag());
}
else if (us.find_first_of("1234567890") != 0 && us.find_first_not_of("QWERTYUIOPASDFGHJKLZXCVBNM1234567890_") == string::npos)
m_asm.append((u256)varAddress(s));
else