started writing actual cape code
diff --git a/bbb_cape/src/cape/util.h b/bbb_cape/src/cape/util.h
index b374ac8..dac30d5 100644
--- a/bbb_cape/src/cape/util.h
+++ b/bbb_cape/src/cape/util.h
@@ -3,6 +3,9 @@
#define ALIAS_WEAK(f) __attribute__ ((weak, alias (#f)))
+// MSG has to be separated_with_spaces.
+#define STATIC_ASSERT(COND,MSG) typedef char static_assertion_##MSG[(!!(COND))*2-1]
+
// Prevents the compiler from reordering memory operations around this.
static inline void compiler_memory_barrier(void) {
__asm__ __volatile__("" ::: "memory");