part of c programming. see also error handling.
status_t status = {0, ""};
, the other status_*
bindings use that variable#include "sph/status.c" status_t test() { status_declare; if (1 < 2) { status_set_goto("mylib", 456); } exit: return status; } int main() { status_init; // code ... status_require(test()); // more code ... exit: return status.id; }