![]() |
LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
|
Functions | |
| void | sig_handler (int sig_num, siginfo_t *sig_info, void *context) |
| void | set_sig_handler () |
| void | lg_print_out_error_codes () |
| void | test_big_error (int test) |
=== Errors handling === TODO: complete the doc
| void sig_handler | ( | int | sig_num, |
| siginfo_t * | sig_info, | ||
| void * | context | ||
| ) |
Set up the Unix signals handler
You must define app_sig_handler() somewhere in your app, so that you can get useful debugging info and exit properly
lg_error_code enum is defined in libgame.h
| void set_sig_handler | ( | ) |
Handling a few UNIX signals
| void lg_print_out_error_codes | ( | ) |
Print out error codes
| void test_big_error | ( | int | test | ) |
Testing big_error()