#pragma once #include #include #include #include #define panic(fmt, ...) \ { \ fprintf(stderr, "C: %02d, T: 0x%lx, F: %s> PANIC! \n\t" fmt "\n", sched_getcpu(), pthread_self(), \ __func__, ##__VA_ARGS__); \ exit(EXIT_FAILURE); \ }