#ifndef __SPL_DBG_H__ #define __SPL_DBG_H__ #include "spl_tok.h" typedef struct { const char *dbg_name; const char *fpath; int line; int col; } spl_dbg_node_t; #define SPL_FATAL(tok, fmt, ...) \ LOG_FATAL("fatal at %s:%zd:%zd " fmt, ((tok) && (tok)->fname ? (tok)->fname : ""), \ ((tok) ? (tok)->line : 0), ((tok) ? (tok)->col : 0), ##__VA_ARGS__) #endif /* __SPL_DBG_H__ */