jubilant-funicular
|
#include <Errors.h>
Static Public Member Functions | |
static void | handle_errors () |
Handles all outstanding errors. | |
static void | set_periodic_callback (const ErrorCallback &callback) |
Sets the periodic callback function. | |
static void | set_push_callback (const ErrorCallback &callback) |
Sets the push callback function. | |
static void | push_error (const Error &err) |
Adds and error to the front of the list. | |
static const Error * | pop_error () |
Removes (and returns) the error from the front of the list. | |
static const Error * | peek_error () |
Returns the error at the front of the list. | |
static void | clear_errors () |
Deletes all errors (without handling any of them) | |
Static Private Attributes | |
static const Error * | m_errors = nullptr |
A linked list of unhandled errors. | |
static ErrorCallback | m_periodic_callback = [](const Error* _) {} |
The function used to handle errors at the end of each frame. | |
static ErrorCallback | m_push_callback |
The function used to handle errors as they occur. More... | |
Stores and handles Errors
|
staticprivate |
The function used to handle errors as they occur.
Definition at line 52 of file Errors.h.
Referenced by push_error(), and set_push_callback().