typedef struct
{
GR_EVENT_TYPE type;
GR_FUNC_NAME name;
GR_ERROR code;
GR_ID id;
} GR_EVENT_ERROR;
The GR_EVENT_ERROR structure is used by nano-X to report runtime errors. Some errors are system errors, such as GR_ERROR_MALLOC_FAILED which indicates that a memory allocation failed. Other error types are program errors, such as GR_ERROR_ILLEGAL_ON_ROOT_WINDOW which will occur if or example the program tries to move the root window.
| Type | Name | Description |
|---|---|---|
| GR_EVENT_TYPE | type | The event type will be GR_EVENT_TYPE_ERROR. |
| GR_FUNC_NAME | name | The name of the function in which the error occured. |
| GR_ERROR | code | The type of error that occured. |
| GR_ID | id | Unused |