36# define STR_LOG_LEN 256
87 printf(
"%s:%u\n",
file, line);
88 vfprintf(stdout, format, ap);
106 va_start(ap, format);
115 printf(
"Fatal error detected in %s %u\n",
file, line);
116 vfprintf(stdout, format, ap);
131 va_start(ap, format);
140 vfprintf(stdout, format, ap);
141 printf(
"%s:%u\n",
file, line);
157 va_start(ap, format);
166 printf(
"Warning detected in %s %u\n",
file, line);
167 vfprintf(stdout, format, ap);
static std::mutex aleph_message_mutex
Core definitions, constants, and utility macros for Aleph-w.
Main namespace for Aleph-w library functions.
const IPv4_Address Null_IPv4_Address
Null/invalid IPv4 address constant.
double max_time
Maximum allowed execution time (in seconds).
void message(const char *file, int line, const char *format,...)
Print an informational message with file and line info.
void exit(const char *file, int line, const char *format,...)
Print a message and exit the program.
void warning(const char *file, int line, const char *format,...)
Print a warning message with file and line info.
uint32_t IPv4_Address
Type alias for IPv4 addresses stored as 32-bit integers.
void error(const char *file, int line, const char *format,...)
Print an error message with file and line info.
bool daemonized
Flag indicating if the process is running as a daemon.
bool verbose
Flag enabling verbose output.