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:
In this example traverse_raw_set doesn't even compile. ```cpp #include #define SOL_ALL_SAFETIES_ON 1 #define SOL_PRINT_ERRORS 1 #include int main() { sol::state lua; lua.open_libraries(); lua.create_table().traverse_raw_set("a", "b", "c"); } ``` ``` In file...
``` //c++ module.new_usertype( "Vector3", sol::constructors(), "add", &Vector3::add, ...); //lua local pos = Vector3.new(0, 0, 0) ``` I noticed that when constructing a Vector3 in Lua, it creates a C closure...
Hi, first I want to express my gratitude for this wonderful library! It's almost indistinguishable from magic :) The documentation is also very good IMO, I've only noticed a few...
Hi, we stumbled upon an issue where `sol::property(&MyClass::MemberVariable, &MyClass::MemberVariable)` leads to crashes. [Compiler Explorer reproduction](https://godbolt.org/z/6bKKfb9b3) You will want to compile the following code with "-fsanitize=address", otherwise its hit and miss...
When updating emsdk, I encountered an error. I forked the library to make adjustments and noticed that it was already fixed. However, I use Conan as a package manager, and...
I have this snippet: ```cpp sol::usertype my_usertype= Lua.new_usertype("my_type"); my_usertype[sol::meta_method::to_string] = [](const int &SomeInt, const int &, const int &, const int &, const int &, const int &, const int...
Using sol2 3.3.1 from vcpkg on MacOS 15.3.2 When trying to build a fairly complex project using sol2, the build will fail on MacOS with this error: ``` /Users/sinan/Dev/R-Type/build/vcpkg_installed/arm64-osx/include/sol/function_types.hpp:110:31: error:...
The question is basically in the title. I basically want to make sure that two smart_pointers pointing to the same object will both result in the same userdata object in...
Skips 4 frames and some template instantiations for a fixed type `lightuserdata_value` that does not depend on `T` Example based on sol2.tests.environment: 