aboutsummaryrefslogtreecommitdiff
path: root/robot/errcatch.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-09 17:17:53 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-09 17:17:53 +0200
commit32237bc52d1dd69d60dda75ddc29bb31ce165c83 (patch)
treeaff899e8b09f7a1b66e06eb4769548ca12169557 /robot/errcatch.h
parentbe84308e01ecc9e8de2997ab030420b401e06596 (diff)
implement setup and hypervisor
Diffstat (limited to 'robot/errcatch.h')
-rw-r--r--robot/errcatch.h10
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);