sol2
sol2 copied to clipboard
Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
Copy-paste error [https://github.com/ThePhD/sol2/blob/develop/cmake/Packages/FindLuaBuild/LuaVanilla.cmake#L296](here:) ``` if (LUA_BUILD_LUA_COMPILER) add_executable(${luainterpreter} ${LUA_VANILLA_LUA_SOURCES}) ``` fixed by ``` if (LUA_BUILD_LUA_COMPILER) add_executable(${luacompiler} ${LUA_VANILLA_LUAC_SOURCES}) ``` Hope the project receives @ThePhD attention soon
I read the https://sol2.readthedocs.io/en/latest/tutorial/cxx-in-lua.html and try it; I set the player some memory and create a lot of players in my scripts player.h: ```c++ struct player { public: int bullets;...
IDE: Visual Studio 2022 sol2: develop branch The code: ```c++ struct Vector1 { int x; int y; Vector1(int x, int y) : x(x), y(y) { } }; struct Vector2 {...
At first, I followed the example provided here to expose a container: https://github.com/ThePhD/sol2/issues/773#issuecomment-463550908 and it's working. However, in my case **I would like to have a container plus some additional...
for code like ```cpp sol::varidic_args args; ... auto last = args.rbegin()[0]; auto second_to_last = args.rbegin()[1]; ``` This code fails. looks ```operator -``` doesn't get defined. ```log /usr/include/c++/11/bits/stl_iterator.h: In instantiation of...
I'm currently experiencing this issue #1212 - ``` C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xmemory0(266): error C2027: use of undefined type 'std::_Get_first_parameter' [C:\Users\User\Desktop\Repos\horizon\build\src\Server\Auth\auth.vcxproj] ```
Unfortunately vcpkg has moved LuaJIT headers to a `luajit/` subdirectory (https://github.com/microsoft/vcpkg/pull/5863). It is my understanding that this means that sol2 can not be used with LuaJIT if both are installed...
Hello mates. I'm trying to introduce resource manager parts to binding. the class I want to embed in lua consists of static methods and fields. This is my small binding:...
In my setup I'm compiling Lua as part of my project, and when I turn on LTO via `CMAKE_INTERPROCEDURAL_OPTIMIZATION`, the return listed below is considered unreachable by MSVC. I guess...
code compiled with lua 5.4 and sol 3.3.0 ```cpp int main() { sol::state lua; lua.open_libraries(); lua.set_function("func1", [](std::tuple t) { std::cout