July 8, 2015 | latest | permalink

crux-00002: the panic module

README.panic | browse source | .tar.gz (sha1: not available yet)

void panic (char * msg);

When error situations occur, crux programs should halt immediately by calling the function "panic". This function does not return. It terminates the program.

An error situation occurs whenever it is unclear or ambiguous what a program should do next. As a rule of thumb: it is never correct to complicate error handling, in crux. Just quit in a way that signals an error.

crux n., pl. cruxes or cruces. 1. A crucial or vital moment; critical point. 2. The basic or essential thing. 3. A puzzling problem.

excerpted from — The American heritage dictionary of the english language (1981, ed. William Morris)


June 13, 2015 | crux begins