This commit is contained in:
2024-02-24 02:41:28 -06:00
parent 579d671a77
commit f6bf09a3eb
14 changed files with 521 additions and 524 deletions

View File

@@ -8,7 +8,7 @@
#include "luacompat.h"
#if defined(__GNUC__) && !defined(LKIWI_NO_BUILTIN)
#if defined(__GNUC__) && !defined(LJKIWI_NO_BUILTIN)
#define lk_likely(x) (__builtin_expect(((x) != 0), 1))
#define lk_unlikely(x) (__builtin_expect(((x) != 0), 0))
#else
@@ -58,7 +58,7 @@ constexpr int array_count(T (&)[N]) {
return static_cast<int>(N);
}
void newlib(lua_State* L, const luaL_Reg* l) {
inline void newlib(lua_State* L, const luaL_Reg* l) {
lua_newtable(L);
setfuncs(L, l, 0);
}