|
libc8
CHIP-8 utility library
|
Data Structures | |
| struct | C8_Exception |
| Represents an exception. More... | |
Macros | |
| #define | C8_SYNTAX_ERROR_EXCEPTION_MESSAGE "A syntax error was encountered in the input file." |
| #define | C8_STACK_OVERFLOW_EXCEPTION_MESSAGE "A stack overflow occurred during execution." |
| #define | C8_STACK_UNDERFLOW_EXCEPTION_MESSAGE "A stack underflow occurred during execution." |
| #define | C8_IO_EXCEPTION_MESSAGE "A file I/O error occurred during execution." |
| #define | C8_INVALID_STATE_EXCEPTION_MESSAGE "The c8 instance is in an invalid state." |
| #define | C8_INVALID_PARAMETER_EXCEPTION_MESSAGE "An invalid parameter was passed to a function." |
| #define | C8_GRAPHICS_EXCEPTION_MESSAGE "An error occurred while rendering graphics." |
| #define | C8_AUDIO_EXCEPTION_MESSAGE "An error occurred while playing audio." |
Functions | |
| void | c8_handle_exception (C8_ExceptionCode code) |
| Handles an exception by printing the corresponding error message to stderr. | |
Variables | |
| const C8_Exception | c8_exceptions [] |
| char | c8_exception [BUFSIZ] |
Message to print when calling c8_handle_exception with a non-zero code. | |
Stuff for handling exceptions.
| #define C8_AUDIO_EXCEPTION_MESSAGE "An error occurred while playing audio." |
| #define C8_GRAPHICS_EXCEPTION_MESSAGE "An error occurred while rendering graphics." |
| #define C8_INVALID_PARAMETER_EXCEPTION_MESSAGE "An invalid parameter was passed to a function." |
| #define C8_INVALID_STATE_EXCEPTION_MESSAGE "The c8 instance is in an invalid state." |
| #define C8_IO_EXCEPTION_MESSAGE "A file I/O error occurred during execution." |
| #define C8_STACK_OVERFLOW_EXCEPTION_MESSAGE "A stack overflow occurred during execution." |
| #define C8_STACK_UNDERFLOW_EXCEPTION_MESSAGE "A stack underflow occurred during execution." |
| #define C8_SYNTAX_ERROR_EXCEPTION_MESSAGE "A syntax error was encountered in the input file." |
| void c8_handle_exception | ( | C8_ExceptionCode | code | ) |
Handles an exception by printing the corresponding error message to stderr.
| code | The exception code. |
| char c8_exception[BUFSIZ] |
Message to print when calling c8_handle_exception with a non-zero code.
| const C8_Exception c8_exceptions[] |