2#ifndef __HASHA_INTERNAL_ERROR_H
3#define __HASHA_INTERNAL_ERROR_H
10void ha_throw(
int noabort,
int notime,
const char *func,
size_t line,
11 char *level,
char *fmt, ...);
13void ha_throwd(
int debug,
int noabort,
int notime,
const char *func,
14 size_t line,
char *level,
char *fmt, ...);
29#define ha_throw_debug(...)
36#define ha_curpos __func__, __LINE__
37#define ha_assert(cond, message, ...) \
40 ha_throw_error(0, ha_curpos, "assertion " #cond " failed: " message, \
48#define ha_throw_fatal(...)
49#define ha_throw_error(func, line, fmt, ...)
50#define ha_throw_warn(...)
51#define ha_throw_debug(...)
55#define ha_assert(cond, message, ...) (void)cond
HA_PUBFUN void ha_throw_fatal(int notime, const char *func, size_t line, char *fmt,...)
HA_PUBFUN void ha_throw(int noabort, int notime, const char *func, size_t line, char *level, char *fmt,...)
HA_PUBFUN void ha_throwd(int debug, int noabort, int notime, const char *func, size_t line, char *level, char *fmt,...)
HA_PUBFUN void ha_throw_warn(int notime, const char *func, size_t line, char *fmt,...)
HA_PUBFUN void ha_throw_debug(int notime, const char *func, size_t line, char *fmt,...)
HA_PUBFUN void ha_throw_error(int notime, const char *func, size_t line, char *fmt,...)