mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
compilation fix
This commit is contained in:
parent
b85b694d78
commit
7784696b65
2 changed files with 4 additions and 3 deletions
|
|
@ -20,13 +20,13 @@ extern size_t __gc_stack_top, __gc_stack_bottom;
|
|||
#define POST_GC() \
|
||||
if (flag) { __gc_stack_top = 0; }
|
||||
|
||||
_Noreturn static void vfailure (char *s, va_list args) {
|
||||
static void vfailure (const char *s, va_list args) {
|
||||
fprintf(stderr, "*** FAILURE: ");
|
||||
vfprintf(stderr, s, args); // vprintf (char *, va_list) <-> printf (char *, ...)
|
||||
exit(255);
|
||||
}
|
||||
|
||||
_Noreturn void failure (char *s, ...) {
|
||||
void failure (const char *s, ...) {
|
||||
va_list args;
|
||||
|
||||
va_start(args, s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue