more examples!

This commit is contained in:
Francesco Cozzuto
2023-01-10 21:35:55 +01:00
parent 1671d178e4
commit c0f6ddda50
6 changed files with 190 additions and 12 deletions
+2 -1
View File
@@ -86,6 +86,7 @@ static const InstrInfo instr_table[] = {
INSTR(SUB)
INSTR(MUL)
INSTR(DIV)
INSTR(MOD)
INSTR(EQL)
INSTR(NQL)
INSTR(LSS)
@@ -523,7 +524,7 @@ _Bool ExeBuilder_Append(ExeBuilder *exeb, Error *error, Opcode opcode, Operand *
#ifndef NDEBUG
if (info == NULL) {
Error_Report(error, 1, "Missing instruction table entry for opcode");
Error_Report(error, 1, "Missing instruction table entry for opcode %d", opcode);
return 0;
}
#endif