about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJames Miller <bladeon@gmail.com>2013-05-02 14:04:43 +1200
committerJames Miller <bladeon@gmail.com>2013-05-02 14:04:43 +1200
commit1bd318421e4fb4252074f2963ab77dddec7949ac (patch)
treecb77b9773c373f5e78caf0baa4e268d323504b0c
parentd3e7c746dddf24935bd55330d20b692fb0e691a6 (diff)
downloadrust-1bd318421e4fb4252074f2963ab77dddec7949ac.tar.gz
rust-1bd318421e4fb4252074f2963ab77dddec7949ac.zip
Add error if RED_ZONE_SIZE doesn't get defined
-rw-r--r--src/rt/rust_task.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h
index 4aa1199cabc..fd4e8451b64 100644
--- a/src/rt/rust_task.h
+++ b/src/rt/rust_task.h
@@ -175,6 +175,10 @@
 #define RED_ZONE_SIZE RZ_MAC_32
 #endif
 
+#ifndef RED_ZONE_SIZE
+# error "Red zone not defined for this platform"
+#endif
+
 struct frame_glue_fns {
     uintptr_t mark_glue_off;
     uintptr_t drop_glue_off;