chore: formalize module loading error codes
* Define Constants: Added STK_MOD_LIBRARY_LOAD_ERROR and STK_MOD_SYMBOL_NOT_FOUND_ERROR to the public header. * Update module.c: Swapped out the -1 and -2 placeholders for the new named constants in stk_module_load.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
/* Modules */
|
||||
#define STK_MOD_INIT_SUCCESS 0
|
||||
#define STK_MOD_INIT_FAILURE 1
|
||||
#define STK_MOD_LIBRARY_LOAD_ERROR 2
|
||||
#define STK_MOD_SYMBOL_NOT_FOUND_ERROR 3
|
||||
|
||||
#if defined(__linux__) || defined(_WIN32)
|
||||
#define STK_EVENT_BUFFER 4096
|
||||
|
||||
Reference in New Issue
Block a user