diff options
Diffstat (limited to 'robot/errcatch.h')
-rw-r--r-- | robot/errcatch.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/robot/errcatch.h b/robot/errcatch.h new file mode 100644 index 0000000..48e2a75 --- /dev/null +++ b/robot/errcatch.h @@ -0,0 +1,14 @@ +#pragma once + +#include <stdint.h> + +#include "consts.h" + +/** error-handler module main */ +void w2_errcatch_main(); + +/** append error to error buffer */ +void w2_errcatch_throw(enum w2_e_errorcodes code); + +/** append error to error buffer (with debug message) */ +void w2_errcatch_throw_msg(enum w2_e_errorcodes code, uint16_t length, const char *message); |