refactor: transition return types to uint8_t and improve error reporting
- Update module load and memory functions to use fixed-width uint8_t - Implement STK_MOD_REALLOC_FAILURE for granular memory error tracking - Clean up logging prefixes in stk_poll for consistency - Update error string helper to support new module error codes
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#define STK_MOD_INIT_FAILURE 1
|
||||
#define STK_MOD_LIBRARY_LOAD_ERROR 2
|
||||
#define STK_MOD_SYMBOL_NOT_FOUND_ERROR 3
|
||||
#define STK_MOD_REALLOC_FAILURE 4
|
||||
|
||||
/* Platform return codes */
|
||||
#define STK_PLATFORM_OPERATION_SUCCESS 0
|
||||
|
||||
Reference in New Issue
Block a user