diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-08-30 15:01:07 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-08-30 15:01:07 +0200 |
commit | bc9fe72c6e85b1930f137ed49c5d2b0c4e4b10de (patch) | |
tree | 3dac926becb2309a80e6ec201700953f09bc2ef2 /include/global.h | |
parent | 8e5c72766c2efd2d3d4e490232fcd5f6c265fe06 (diff) |
Do some pyramid bag
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index ab31e3c5d..0fff11d09 100644 --- a/include/global.h +++ b/include/global.h @@ -27,6 +27,13 @@ #define ARRAY_COUNT(array) (size_t)(sizeof(array) / sizeof((array)[0])) +#define SWAP(a, b, temp) \ +{ \ + temp = a; \ + a = b; \ + b = temp; \ +} + // useful math macros // Converts a number to Q8.8 fixed-point format |