mirror of
https://git.stationery.faith/corn/corn.git
synced 2024-11-10 03:22:08 +00:00
8 lines
210 B
C
8 lines
210 B
C
#pragma once
|
|
|
|
#define _PANIC_STR(x) _PANIC_STR2(x)
|
|
#define _PANIC_STR2(x) #x
|
|
|
|
#define panic(msg) _panic_impl(_PANIC_STR(__LINE__), __FILE__, msg)
|
|
|
|
_Noreturn void _panic_impl(char *line, char *file, char *msg);
|