finix/kernel/include/panic.h

7 lines
181 B
C
Raw Normal View History

2023-07-16 06:54:32 +00:00
#pragma once
#define panic(msg, ...) _panic_impl(msg, __LINE__, __FILE__, ## __VA_ARGS__)
__attribute__((noreturn))
extern void _panic_impl(char* msg, int line, char* file, ...);