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:
2026-01-29 22:53:11 +01:00
parent 2fbf4ca24a
commit 6567fceaec
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -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