blob: 12d26fd03ad33700265e61ff84342e12ecc6e11a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include <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)
|