From ecc8ffbd8033724b026f10ab435f7054c37f145d Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 23 Jun 2021 13:59:01 +0100 Subject: Compile the entire Lua stack as C++ * Fixes #5216 --- src/Bindings/LuaState.cpp | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'src/Bindings/LuaState.cpp') diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp index 3a1379df1..e4c537967 100644 --- a/src/Bindings/LuaState.cpp +++ b/src/Bindings/LuaState.cpp @@ -6,10 +6,7 @@ #include "Globals.h" #include "LuaState.h" -extern "C" -{ - #include "lua/src/lualib.h" -} +#include "lua/src/lualib.h" #undef TOLUA_TEMPLATE_BIND #include "tolua++/include/tolua++.h" @@ -34,17 +31,11 @@ extern "C" -// fwd: "SQLite/lsqlite3.c" -extern "C" -{ - int luaopen_lsqlite3(lua_State * L); -} +// fwd: "SQLite/lsqlite3.cpp" +int luaopen_lsqlite3(lua_State * L); -// fwd: "LuaExpat/lxplib.c": -extern "C" -{ - int luaopen_lxp(lua_State * L); -} +// fwd: "LuaExpat/lxplib.cpp": +int luaopen_lxp(lua_State * L); -- cgit v1.2.3