2023-05-17 20:42:59 -07:00
|
|
|
#pragma once
|
|
|
|
|
2023-05-18 01:16:53 -07:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2023-06-17 01:45:53 -07:00
|
|
|
#include "include/ztypes.h"
|
2023-06-07 08:50:08 -07:00
|
|
|
|
2023-11-05 08:48:41 -08:00
|
|
|
// Debug line without formatting for
|
|
|
|
// before allocations are available.
|
|
|
|
void early_dbgln(const char* str);
|
|
|
|
|
2023-05-30 23:22:29 -07:00
|
|
|
void dbg(const char* fmt, ...);
|
2023-05-18 01:16:53 -07:00
|
|
|
void dbgln(const char* str, ...);
|
|
|
|
void panic(const char* str, ...);
|
2023-06-07 08:50:08 -07:00
|
|
|
|
|
|
|
#define UNREACHABLE \
|
|
|
|
panic("Unreachable %s, %s", __FILE__, __LINE__); \
|
|
|
|
__builtin_unreachable();
|