Minor patch to get sol.hpp working.

This commit is contained in:
Henrik Rydgård committed 2025-03-27 08:59:38 +01:00
1 parent cf059ff84c
commit d0e60e5b06
3 files changed
+25 -4

No files matched your search

+3
View File
@@ -447,6 +447,9 @@
<ClInclude Include="..\ext\lua\lzio.h" />
<ClInclude Include="..\ext\minimp3\minimp3.h" />
<ClInclude Include="..\ext\naett\naett.h" />
<ClInclude Include="..\ext\sol\config.hpp" />
<ClInclude Include="..\ext\sol\forward.hpp" />
<ClInclude Include="..\ext\sol\sol.hpp" />
<ClInclude Include="..\ext\vma\vk_mem_alloc.h" />
<ClInclude Include="ABI.h" />
<ClInclude Include="Arm64Emitter.h" />
+13 -1
View File
@@ -682,6 +682,15 @@
<ClInclude Include="Net\SocketCompat.h">
<Filter>Net</Filter>
</ClInclude>
<ClInclude Include="..\ext\sol\config.hpp">
<Filter>ext\sol</Filter>
</ClInclude>
<ClInclude Include="..\ext\sol\forward.hpp">
<Filter>ext\sol</Filter>
</ClInclude>
<ClInclude Include="..\ext\sol\sol.hpp">
<Filter>ext\sol</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="ABI.cpp" />
@@ -1416,6 +1425,9 @@
<Filter Include="ext\lua">
<UniqueIdentifier>{71e2e5df-5cfb-41e6-97da-f71584a7394e}</UniqueIdentifier>
</Filter>
<Filter Include="ext\sol">
<UniqueIdentifier>{ec7d8691-bb7f-4689-b66a-cb60c1f48afd}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<Text Include="..\ext\libpng17\CMakeLists.txt">
@@ -1469,4 +1481,4 @@
<Filter>ext\lua</Filter>
</None>
</ItemGroup>
</Project>
</Project>
+9 -3
View File
@@ -32,6 +32,12 @@
#ifndef SOL_HPP
#define SOL_HPP
// Can't use our debug memory handling with this.
#ifdef new
#undef new
#define DBG_MEM
#endif
// beginning of sol/version.hpp
#include <sol/config.hpp>
@@ -4412,9 +4418,9 @@ COMPAT53_API void luaL_requiref(lua_State* L, const char* modname, lua_CFunction
#if defined(__cplusplus) && !defined(COMPAT53_LUA_CPP)
extern "C" {
#endif
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <ext/lua/lua.h>
#include <ext/lua/lauxlib.h>
#include <ext/lua/lualib.h>
#if defined(__cplusplus) && !defined(COMPAT53_LUA_CPP)
}
#endif