aboutsummaryrefslogtreecommitdiffstats
path: root/src/macros.h
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2023-12-24 04:26:00 -0600
committerLibravatar bigfoot547 <[email protected]>2023-12-24 04:26:00 -0600
commit20d9fc5b5356a1054cb104ba6651b77184abf0db (patch)
tree5f115d8051dad73069d3a632a6f2c260cf7efdac /src/macros.h
initial commit
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
new file mode 100644
index 0000000..771032c
--- /dev/null
+++ b/src/macros.h
@@ -0,0 +1,8 @@
+#ifndef L2SU_MACROS_H_INCLUDED
+#define L2SU_MACROS_H_INCLUDED
+
+#include "config.h"
+
+#define L2_ARRLEN(_a) (sizeof(_a) / sizeof(*(_a)))
+
+#endif /* include guard */