Add NO_RETURN to abort and assert functions.

This commit is contained in:
Ali Mashtizadeh 2023-08-22 21:53:26 -04:00
parent 53161c2c95
commit 06e247a401
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
int atexit(void (*function)(void)); int atexit(void (*function)(void));
void exit(int status); void exit(int status);
void abort(void); _Noreturn void abort(void);
void *calloc(size_t num, size_t sz); void *calloc(size_t num, size_t sz);
void *malloc(size_t sz); void *malloc(size_t sz);

View File

@ -20,7 +20,7 @@
NO_RETURN void Panic(const char *str); NO_RETURN void Panic(const char *str);
int kprintf(const char *fmt, ...); int kprintf(const char *fmt, ...);
void Debug_Assert(const char *fmt, ...); NO_RETURN void Debug_Assert(const char *fmt, ...);
#define static_assert _Static_assert #define static_assert _Static_assert