|
libc8
CHIP-8 utility library
|
#include <stdio.h>Go to the source code of this file.
Macros | |
| #define | C8_EXCEPTION_MESSAGE_SIZE BUFSIZ |
| Maximum size of exception message. | |
| #define | C8_EXCEPTION(code, ...) |
| Exception handling macro. | |
Enumerations | |
| enum | C8_ExceptionCode { C8_SYNTAX_ERROR_EXCEPTION = -3 , C8_STACK_OVERFLOW_EXCEPTION = -4 , C8_STACK_UNDERFLOW_EXCEPTION = -5 , C8_IO_EXCEPTION = -6 , C8_INVALID_STATE_EXCEPTION = -7 , C8_INVALID_PARAMETER_EXCEPTION = -8 , C8_GRAPHICS_EXCEPTION = -9 , C8_AUDIO_EXCEPTION = -10 } |
| Exception code enum. More... | |
Functions | |
| void | c8_handle_exception (C8_ExceptionCode) |
| Handles an exception by printing the corresponding error message to stderr. | |
Variables | |
| char | c8_exception [BUFSIZ] |
Message to print when calling c8_handle_exception with a non-zero code. | |
Stuff for handling exceptions.
| #define C8_EXCEPTION | ( | code, | |
| ... | |||
| ) |
Exception handling macro.
| #define C8_EXCEPTION_MESSAGE_SIZE BUFSIZ |
Maximum size of exception message.
| enum C8_ExceptionCode |
| void c8_handle_exception | ( | C8_ExceptionCode | code | ) |
Handles an exception by printing the corresponding error message to stderr.
| code | The exception code. |
|
extern |
Message to print when calling c8_handle_exception with a non-zero code.