Fix: Fix Ninja build for LuaJit and Lua51 (#303)

This commit is contained in:
iThorgrim
2025-09-02 12:47:23 +02:00
committed by GitHub
parent 4acc340bf5
commit 059c20f3ac
2 changed files with 4 additions and 6 deletions

View File

@@ -34,11 +34,9 @@
#include <cstdint>
#include "ElunaCompat.h"
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
#if LUA_VERSION_NUM == 501 && !defined(luaL_setfuncs)
#define luaL_setfuncs(L, l, n) luaL_register(L, NULL, l)
#endif
#define MAR_TREF 1
#define MAR_TVAL 2