This commit is contained in:
SpookyDervish
2025-12-19 18:31:41 +11:00
parent 9f58ac9de5
commit f97ef75445
5 changed files with 150 additions and 0 deletions

26
src/exception.c Normal file
View File

@@ -0,0 +1,26 @@
#include "exception.h"
char* exceptionAsCString(VMBL_Exception exception)
{
switch (exception.type)
{
case EXCEPTION_NONE:
return "EXCEPTION_NONE";
break;
case EXCEPTION_STACK_OVERFLOW:
return "EXCEPTION_STACK_OVERFLOW";
break;
case EXCEPTION_STACK_UNDERFLOW:
return "EXCEPTION_STACK_UNDERFLOW";
break;
case EXCEPTION_INVALID_OPCODE:
return "EXCEPTION_INVALID_OPCODE";
break;
default:
break;
}
}