This commit is contained in:
Andre Wagner
2026-04-30 09:38:43 -05:00
parent 5843a19b2f
commit 50b55eaeef
4 changed files with 58 additions and 1 deletions

View File

@@ -30,6 +30,11 @@ public:
explicit VMTypeError(Type expected, Type found) : VMRuntimeError("Type error") {} // TODO - print types
};
class VMInvalidOpcode : public VMRuntimeError
{
public:
explicit VMInvalidOpcode(uint8_t opcode) : VMRuntimeError("Invalid opcode " + std::to_string(opcode)) {}
};
}