Reverted moving Lua to C++.

This commit is contained in:
Mattes D 2024-03-11 23:16:17 +01:00
parent cc6a866aa6
commit 7b8f6eb951
8 changed files with 28 additions and 8 deletions

@ -1 +1 @@
Subproject commit f543fd79318bf31c81141a07662eb71896a1d938
Subproject commit 9972ba6d45f572b3569f907421fbc4866b4d1bfb

@ -1 +1 @@
Subproject commit 9aeab26b00c0bf4c1c3d0afd61acaf08eaf949d3
Subproject commit 4435d7e4297220228174385302d430f1fdf3d090

@ -1 +1 @@
Subproject commit 26e85c404baf1d2e5eb4a21660d1f37176d7ab33
Subproject commit 4d24aa316898964c23896fbb7419bdaa23638c26

View File

@ -2,6 +2,11 @@
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "DeprecatedBindings.h"
extern "C"
{
#include "lua/src/lua.h"
#include "lua/src/lauxlib.h"
}
#undef TOLUA_TEMPLATE_BIND
#include "tolua++/include/tolua++.h"

View File

@ -6,7 +6,10 @@
#include "Globals.h"
#include "LuaState.h"
#include "lua/src/lualib.h"
extern "C"
{
#include "lua/src/lualib.h"
}
#undef TOLUA_TEMPLATE_BIND
#include "tolua++/include/tolua++.h"
@ -32,7 +35,10 @@
// fwd: "SQLite/lsqlite3.cpp"
int luaopen_lsqlite3(lua_State * L);
extern "C"
{
int luaopen_lsqlite3(lua_State * L);
}
// fwd: "LuaExpat/lxplib.cpp":
int luaopen_lxp(lua_State * L);

View File

@ -30,7 +30,10 @@ stays valid but doesn't call into Lua code anymore, returning false for "failure
#pragma once
#include "lua/src/lauxlib.h"
extern "C"
{
#include "lua/src/lauxlib.h"
}
#include "../Defines.h"
#include "../FunctionRef.h"

View File

@ -7,7 +7,10 @@
#include "../Entities/Player.h"
#include "../UI/SlotArea.h"
#include "PluginLua.h"
#include "lua/src/lauxlib.h" // Needed for LUA_REFNIL
extern "C"
{
#include "lua/src/lauxlib.h" // Needed for LUA_REFNIL
}
#include "../Root.h"
#include "../ClientHandle.h"

View File

@ -20,7 +20,10 @@
#include "../Root.h"
#include "../WebAdmin.h"
#include "lua/src/lauxlib.h"
extern "C"
{
#include "lua/src/lauxlib.h"
}
#undef TOLUA_TEMPLATE_BIND
#include "tolua++/include/tolua++.h"