blob: ea2cef5413ec3199649254125f886df335fe6c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include <kernel/arch/generic.h>
// dumb c shit
#define panic_tostr2(x) #x
#define panic_tostr(x) panic_tostr2(x)
#define panic() do { \
log_const(" PANIC! at the "); \
log_const(__func__); \
log_const(" (" __FILE__ ":" panic_tostr(__LINE__) ") "); \
halt_cpu(); \
} while (0)
|