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

18
src/exception.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef EXCEPTION_H
#define EXCEPTION_H
typedef enum {
EXCEPTION_NONE,
EXCEPTION_STACK_OVERFLOW,
EXCEPTION_STACK_UNDERFLOW,
EXCEPTION_INVALID_OPCODE
} VMBL_ExceptionType;
typedef struct
{
VMBL_ExceptionType type;
} VMBL_Exception;
char* exceptionAsCString(VMBL_Exception exception);
#endif