diff options
Diffstat (limited to 'robot/errcatch.h')
-rw-r--r-- | robot/errcatch.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/robot/errcatch.h b/robot/errcatch.h index c816051..48e2a75 100644 --- a/robot/errcatch.h +++ b/robot/errcatch.h @@ -1,4 +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); |