sol2 icon indicating copy to clipboard operation
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:

Results 286 sol2 issues
Sort by recently updated
recently updated
newest added

We're experiencing a build issue using Github Actions on macOS due to the following: ``` /Users/runner/work/Segs/Segs/3rd_party/lua_sol2/include/sol/sol.hpp:21158:23: error: no template named 'unordered_map' in namespace 'std' static const std::unordered_map calls { ~~~~~^...

If I supply a custom `lua_Alloc` function which throws a `std::bad_alloc` exception, the type of exception that bubbles through Lua/sol3 appears non-deterministic. On our CI machines running Intel macOS and...

```cpp sol::state lua; lua.set_function("f", [](sol::object) {}); lua.script("f(1)"); // ok lua.script("f(nil)"); // ok only if SOL_EXCEPTIONS_SAFE_PROPAGATION 0 ``` I'm using PUC Lua 5.1 and sol commit `6409634`.

SOL_VERSION_STRING "3.2.3" C++: typedef std::shared_ptr lua_state_ptr; lua_state_ptr pState = nullptr; sol::table TestFun(sol::this_state s) { sol::state_view lua(s); sol::table points = lua.create_table(); for (int i =0 ;iopen_libraries(); pState->set_function("TestFun", &TestFun0); auto varRet =...

Hi. This is not a bug report but a question. Sorry if it is already answered somewhere. I didn't manage to find anything relevant in docs or issues. I have...

Hello and thank you for the awesome piece of code that `sol` is! I was evaluating what kind of safety net needs to be put around `sol` in the context...

Issue https://github.com/ThePhD/sol2/issues/1074 introduced a new customization point to handle checked access. This is currently done only for "real" function arguments, and not for "implicit" argument like the `this` pointer when...

Linux, gcc 11, amd64 The test which fails is `tests/runtime_tests` in sol2's directory. It's working fine with lua 5.4.2, but fails with lua 5.4.4 ``` [C++] ~depends_on_reference [C++] ~composition_related [C++]...

Help.Desk

I get an empty sol::this_environment when method is called from lua function where object is passed as argument. When it's called directly from container that is binded to sol it...

Hello, I'm currently playing with coroutine with Lua and Sol and I'm actually a bit confused. Indeed, I'm trying to reproduce something like that: Lua Code: ```lua co1 = coroutine.create(...

Feature.Can Do
Feature.Shiny
Help.Desk
v4