Melee Modding Library
2.0.0
A C library for modding Super Smash Bros Melee
|
handle run-time errors More...
#include "print.h"
Go to the source code of this file.
Macros | |
#define | THROW_ERROR(code, msg) |
#define | ERROR_MSG(msg) |
#define | ERROR_STATE _errorState; |
#define | ERROR_THROWN(code) (_errorState & (code)) |
#define | ERR_1 (1 << 0) |
#define | ERR_2 (1 << 1) |
#define | ERR_3 (1 << 2) |
#define | ERR_4 (1 << 3) |
#define | ERR_5 (1 << 4) |
#define | ERR_6 (1 << 5) |
#define | ERR_7 (1 << 6) |
#define | ERR_8 (1 << 7) |
#define | ERR_9 (1 << 8) |
#define | ERR_10 (1 << 9) |
#define | ERR_11 (1 << 10) |
#define | ERR_12 (1 << 11) |
#define | ERR_13 (1 << 12) |
#define | ERR_14 (1 << 13) |
#define | ERR_15 (1 << 14) |
#define | ERR_16 (1 << 15) |
#define | ERR_17 (1 << 16) |
#define | ERR_18 (1 << 17) |
#define | ERR_19 (1 << 18) |
#define | ERR_20 (1 << 19) |
#define | ERR_21 (1 << 20) |
#define | ERR_22 (1 << 21) |
#define | ERR_23 (1 << 22) |
#define | ERR_24 (1 << 23) |
#define | ERR_25 (1 << 24) |
#define | ERR_26 (1 << 25) |
#define | ERR_27 (1 << 26) |
#define | ERR_28 (1 << 27) |
#define | ERR_29 (1 << 28) |
#define | ERR_30 (1 << 29) |
#define | ERR_31 (1 << 30) |
#define | ERR_32 (1 << 31) |
Variables | |
u32 | _errorState |
handle run-time errors
#define ERROR_STATE _errorState; |
true as soon as one error throw
#define ERROR_THROWN | ( | code | ) | (_errorState & (code)) |
check if error code has been thrown
#define ERR_1 (1 << 0) |
Error Code
#define ERR_2 (1 << 1) |
Error Code
#define ERR_3 (1 << 2) |
Error Code
#define ERR_4 (1 << 3) |
Error Code
#define ERR_5 (1 << 4) |
Error Code
#define ERR_6 (1 << 5) |
Error Code
#define ERR_7 (1 << 6) |
Error Code
#define ERR_8 (1 << 7) |
Error Code
#define ERR_9 (1 << 8) |
Error Code
#define ERR_10 (1 << 9) |
Error Code
#define ERR_11 (1 << 10) |
Error Code
#define ERR_12 (1 << 11) |
Error Code
#define ERR_13 (1 << 12) |
Error Code
#define ERR_14 (1 << 13) |
Error Code
#define ERR_15 (1 << 14) |
Error Code
#define ERR_16 (1 << 15) |
Error Code
#define ERR_17 (1 << 16) |
Error Code
#define ERR_18 (1 << 17) |
Error Code
#define ERR_19 (1 << 18) |
Error Code
#define ERR_20 (1 << 19) |
Error Code
#define ERR_21 (1 << 20) |
Error Code
#define ERR_22 (1 << 21) |
Error Code
#define ERR_23 (1 << 22) |
Error Code
#define ERR_24 (1 << 23) |
Error Code
#define ERR_25 (1 << 24) |
Error Code
#define ERR_26 (1 << 25) |
Error Code
#define ERR_27 (1 << 26) |
Error Code
#define ERR_28 (1 << 27) |
Error Code
#define ERR_29 (1 << 28) |
Error Code
#define ERR_30 (1 << 29) |
Error Code
#define ERR_31 (1 << 30) |
Error Code
#define ERR_32 (1 << 31) |
Error Code
u32 _errorState |
Only true
if error
has never been called