Error message handler. More...
Go to the source code of this file.
Functions | |
int | EMU68error_add (char *format,...) |
Push formatted error message. | |
const char * | EMU68error_get (void) |
Pop last error message. |
Error message handler.
EMU68 error handling consists on a fixed size stack of messages. When an EMU68 function fails, it stores a description message for the error and returns a negative number. If error stack is full, the older stacked message is removed.
int EMU68error_add | ( | char * | format, | |
... | ||||
) |
Push formatted error message.
The EMU68error_add() format error message and push it in error stack. On overflow the older message is lost.
format | printf() like format string. |
0xDEAD0xxx,where | xxx is a random value |
const char* EMU68error_get | ( | void | ) |
Pop last error message.
Retrieve and remove last error message from error stack.
0 | Empty message stack, no more message. |