aboutsummaryrefslogtreecommitdiff
path: root/riscv/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/common.h')
-rw-r--r--riscv/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/common.h b/riscv/common.h
index 447d631..cbb8e95 100644
--- a/riscv/common.h
+++ b/riscv/common.h
@@ -20,4 +20,6 @@
print_and_die(__str); \
} } while(0)
+#define static_assert(x) switch (x) case 0: case (x):
+
#endif