// SPDX-License-Identifier: MIT // Copyright (c) 2023 John Watts and the LuminaSensum contributors #ifndef ERROR_H #define ERROR_H #include "types.h" // Aborts the program with a message __attribute__((noreturn)) void abort_msg(VmState state, const char *msg); // Aborts the program if a value is true void abort_if(VmState state, int value, const char *msg); #endif