Detailed Description
Provides error message push and pop functions.
Error messages consist on a fixed size stack of fixed length strings.
Function Documentation
int SC68error_add |
( |
const char * |
format, |
|
|
... |
|
|
) |
|
|
|
Push a formatted error message.
The SC68error_add() function format error string into stack buffer. If stack is full, the oldest error message is removed.
- Parameters:
-
format | printf() like format string |
- Returns:
- error-code
- Return values:
-
|
const char* SC68error_get |
( |
void |
|
) |
|
|
|
Get last error message.
The SC68error_get() function retrieves last error message and removes it from error message stack.
- Returns:
- Static string to last error message
- Return values:
-
0 | No stacked error message |
|
|