From a80c52bedd4ca4b294c889d20107cf335176e210 Mon Sep 17 00:00:00 2001 From: giomba Date: Sun, 22 Oct 2023 11:40:57 +0200 Subject: [PATCH] Add compiler.h specific macros. --- src/compiler.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/compiler.h diff --git a/src/compiler.h b/src/compiler.h new file mode 100644 index 0000000..3a3ec55 --- /dev/null +++ b/src/compiler.h @@ -0,0 +1,7 @@ +#ifndef COMPILER_H +#define COMPILER_H + +#define countof(a) (sizeof(a) / sizeof(*(a))) + +#endif +