aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_internal.h')
-rw-r--r--src/rt/rust_internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h
index 78ba85e8..bd9be504 100644
--- a/src/rt/rust_internal.h
+++ b/src/rt/rust_internal.h
@@ -44,10 +44,12 @@ extern "C" {
#error "Target CPU not supported."
#endif
-#define I(dom, e) ((e) ? (void)0 : \
+#define I(dom, e) ((e) ? (void)0 : \
(dom)->srv->fatal(#e, __FILE__, __LINE__))
+#define W(dom, e, s) ((e) ? (void)0 : \
+ (dom)->srv->warning(#e " : " #s, __FILE__, __LINE__))
-#define A(dom, e, s) ((e) ? (void)0 : \
+#define A(dom, e, s) ((e) ? (void)0 : \
(dom)->srv->fatal(#e " : " #s, __FILE__, __LINE__))
struct rust_task;