summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
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 {