1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-08 11:33:02 +00:00

Add noreturn attribute to panic functions.

This commit is contained in:
Calvin Rose
2019-05-31 10:10:20 -04:00
parent 26513a7a16
commit 2acc81d1c5
3 changed files with 16 additions and 14 deletions

View File

@@ -447,7 +447,7 @@ static void builder_cleanup(Builder *b) {
janet_v_free(b->bytecode);
}
static void peg_panic(Builder *b, const char *msg) {
JANET_NO_RETURN static void peg_panic(Builder *b, const char *msg) {
builder_cleanup(b);
janet_panicf("grammar error in %p, %s", b->form, msg);
}