mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-28 00:34:06 +02:00
16 lines
489 B
C
16 lines
489 B
C
#pragma once
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#define PANIC(...) \
|
|
(fputs("\x1b[1;31mpanic\x1b[97m: ", stderr), fprintf(stderr, __VA_ARGS__), \
|
|
fprintf(stderr, "\x1b[0m\n\tin %s:%d\n\tat %s:%d\n", __func__, \
|
|
__LINE__, __FILE__, __LINE__), \
|
|
exit(1), (void)0)
|
|
|
|
__attribute__((unused)) static inline void ___include_user(void)
|
|
{
|
|
PANIC("");
|
|
}
|