summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
authorJoshua Diamond <josh@windowoffire.com>2022-09-18 19:06:31 -0400
committerJoshua Diamond <josh@windowoffire.com>2022-09-18 19:06:31 -0400
commit9a1b4b78f11e2953e758499ecadbe7069a3fdbdc (patch)
treeb08af812f4befc3af4c8326c129ee29da5e3dfe5 /users
parent8beb61b790d215a365298d3aa865ebf1ebf78d8c (diff)
parentecb4ba70b1d48835e75da6b0a8ad566c2f126b9f (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'users')
-rw-r--r--users/jonavin/jonavin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/jonavin/jonavin.h b/users/jonavin/jonavin.h
index c3e383bd3a..97f72c1248 100644
--- a/users/jonavin/jonavin.h
+++ b/users/jonavin/jonavin.h
@@ -17,6 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
+// DEFINE MACROS
+#ifndef ARRAYSIZE
+#define ARRAYSIZE(arr) sizeof(arr)/sizeof(arr[0])
+#endif // !ARRAYSIZE
// LAYERS
enum custom_user_layers {