wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
exit.h File Reference

Process termination, separate from common/platform/debug (which owns log output only). More...

Go to the source code of this file.

Functions

void wired_die (const char *msg)
 Log msg then terminate the process with exit code 1.

Detailed Description

Process termination, separate from common/platform/debug (which owns log output only).

wired_die composes "log a diagnostic" with "terminate the process" into one action; that composite responsibility does not belong in debug's MECE slice, so it gets its own domain here.

Function Documentation

◆ wired_die()

void wired_die ( const char * msg)

Log msg then terminate the process with exit code 1.

Never returns.

Parameters
msgNUL-terminated diagnostic to log before exiting