diff --git a/lang/error.c b/lang/error.c index 16e001b..cdf2c57 100644 --- a/lang/error.c +++ b/lang/error.c @@ -5,14 +5,12 @@ #include #include -// Aborts the program with a message __attribute__((noreturn)) void abort_msg(VmState state, const char *msg) { (void)state; fprintf(stderr, "ERROR: %s\n", msg); abort(); } -// Aborts the program if a value is true void abort_if(VmState state, int value, const char *msg) { if (value) { abort_msg(state, msg); diff --git a/lang/error.h b/lang/error.h index b374544..93fc2fc 100644 --- a/lang/error.h +++ b/lang/error.h @@ -6,7 +6,7 @@ #include "types.h" -// Aborts the program with a message +// Aborts the program with a message to stderr __attribute__((noreturn)) void abort_msg(VmState state, const char *msg); // Aborts the program if a value is true