AERMRE 1.5.1
AER modding framework for Hyper Light Drifter.
err.h
Go to the documentation of this file.
1
22#ifndef AER_ERR_H
23#define AER_ERR_H
24
25/* ----- PUBLIC TYPES ----- */
26
27#define AER_OUT_OF_MEM AER_OUT_OF_MEM __attribute__((deprecated))
33typedef enum AERErrCode {
40 AER_TRY = -1,
52 AER_OK = 0,
97 AER_BAD_VAL = 7
99#undef AER_OUT_OF_MEM
100
101/* ----- PUBLIC GLOBALS ----- */
102
111extern AERErrCode aererr;
112
113#endif /* AER_ERR_H */
AERErrCode aererr
Error state of most recently called MRE function.
AERErrCode
Possible values of aererr.
Definition: err.h:33
@ AER_SEQ_BREAK
Function called at incorrect stage of runtime execution.
Definition: err.h:64
@ AER_FAILED_LOOKUP
Function called with an invalid index, ID or key.
Definition: err.h:79
@ AER_NULL_ARG
Function received NULL pointer argument.
Definition: err.h:58
@ AER_BAD_VAL
Function encountered an invalid value or combination of values.
Definition: err.h:97
@ AER_TRY
Flag that informs the MRE that the next public function call is being error-checked....
Definition: err.h:40
@ AER_OUT_OF_MEM
Function unable to allocate necessary memory required for proper execution.
Definition: err.h:73
@ AER_OK
Function did not report an error.
Definition: err.h:52
@ AER_FAILED_PARSE
Function unable to parse resource.
Definition: err.h:85
@ AER_BAD_FILE
Function unable to read file.
Definition: err.h:91