get compiling with c++

This commit is contained in:
2024-02-22 10:15:01 -06:00
parent 604e3df41f
commit 198265ee36
3 changed files with 41 additions and 28 deletions

View File

@@ -3,7 +3,7 @@
#include "luacompat.h"
#define ARR_COUNT(x) (sizeof(x) / sizeof((x)[0]))
#define ARR_COUNT(x) ((int)(sizeof(x) / sizeof((x)[0])))
#if defined(__GNUC__) && !defined(LKIWI_NO_BUILTIN)
#define l_likely(x) (__builtin_expect(((x) != 0), 1))