diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-11-23 22:18:34 -0800 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-11-23 22:18:34 -0800 |
| commit | edbf03101a64b05e9d20cdf53ec2ca4888a2effa (patch) | |
| tree | db67f687b238abf2961b819dd0f121fffbb341c2 /include/global.h | |
| parent | 0b52f80e4d01ce7c9104eeb9b474bc1cf77b94ed (diff) | |
done
Diffstat (limited to 'include/global.h')
| -rw-r--r-- | include/global.h | 4 |
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 |
