37# define STR_LOG_LEN 256
122 printf(
"Fatal error detected in %s %u\n",
file, line);
177 printf(
"Warning detected in %s %u\n",
file, line);
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.
DynList< T > maps(const C &c, Op op)
Classic map operation.
RAII-style wrapper for POSIX mutexes.
#define CRITICAL_SECTION(mutex)
Create an anonymous critical section guard.