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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user