示例#1
0
bool CVirtualMachine::popValue(CValue &val)
{
  if (m_runtimeStack.empty())
  {
    return false;
  }
  val = std::move(m_runtimeStack.back());
  assert(val.getType() != CValue::EType::Invalid);
  m_runtimeStack.pop_back();
  return true;
}
示例#2
0
void CVirtualMachine::pushValue(const CValue &val)
{
  assert(val.getType() != CValue::EType::Invalid);
  m_runtimeStack.push_back(val);
}