summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2020-11-23 22:18:34 -0800
committertheo3 <arisstephenson2@gmail.com>2020-11-23 22:18:34 -0800
commitedbf03101a64b05e9d20cdf53ec2ca4888a2effa (patch)
treedb67f687b238abf2961b819dd0f121fffbb341c2 /include/global.h
parent0b52f80e4d01ce7c9104eeb9b474bc1cf77b94ed (diff)
done
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index ad4b9daa..3b2e0446 100644
--- a/include/global.h
+++ b/include/global.h
@@ -47,6 +47,8 @@
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) >= (b) ? (a) : (b))
+#define static_assert(cond) extern char assertion[(cond) ? 1 : -1]
+
typedef union {
s32 WORD;
struct {
@@ -74,4 +76,6 @@ union SplitHWord {
} PACKED HALF;
} PACKED;
+
+
#endif // GUARD_GLOBAL_H