aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine/utils.h')
-rw-r--r--qtmips_machine/utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/qtmips_machine/utils.h b/qtmips_machine/utils.h
new file mode 100644
index 0000000..7d30364
--- /dev/null
+++ b/qtmips_machine/utils.h
@@ -0,0 +1,10 @@
+#ifndef UTILS_H
+#define UTILS_H
+
+#if __GNUC__ >= 7
+#define FALLTROUGH __attribute__((fallthrough));
+#else
+#define FALLTROUGH
+#endif
+
+#endif // UTILS_H