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 318 sol2 issues
Sort by recently updated
recently updated
newest added

**Test case close to usecase (Also includes a Dockerfile)**: [demo.tar.gz](https://github.com/ThePhD/sol2/files/10578869/demo.tar.gz) **Minimal test case**: [demo-minimal.tar.gz](https://github.com/ThePhD/sol2/files/10676268/demo-minimal.tar.gz) # Explanation I am working on a project, where I have to pass an instance of...

I'm using the current develop branch of sol. I have a custom container that is automatically detected by sol, so I did not specialize `usertype_container` for my container. However, deleting...

Implementations of this exist. For example, [haproxy](https://github.com/haproxy/haproxy/blob/master/src/hlua.c#L1379), which uses Lua's debug hooks. However, I couldn't find any mention of hooks in the Sol documentation. So I had some questions. Has...

I am crashing when using "sol::state_view lua_state(g_LuaState)" Code: ![image](https://user-images.githubusercontent.com/95361171/213930220-ff45d8ef-b301-4f92-82e8-e18a43136473.png) i debbugged and when calling sol::state_view i crash

Following code compiled with GCC and Clang produces different output: ```c++ #include #include #include #include int main() { sol::state state; auto f0 = [] { std::printf("f0\n"); }; auto f1 =...

Hello. What's the recommended way to create custom containers, which can hold indirect self-references? From my testing, they never get garbage-collected. Example Lua code ```Lua do local container = myApi.makeContainer()...

I use `unique_usertype_traits` for a custom intrusive pointer `Ptr`. ``` template struct unique_usertype_traits { typedef T type; typedef Ptr actual_type; static constexpr bool value = true; static bool is_null(const actual_type&...

The test case is to sum to 10000000. execution time: - C++ native: 6ms - Sol3.3.1 + lua5.4.4: 253ms - LuaBridege3 + lua5.4.4: 284ms - Sol3.3.1 + luajit2.0.5: **56ms** -...

I've seen the [code example](https://github.com/ThePhD/sol2/blob/develop/examples/source/require_override_behavior.cpp) of how to use the `add_package_loader` but I'm not sure if I can use it by passing a simpler lambda. This is what I'm trying...

We are looking to create definition files for our Lua 5.4 API like this: https://luals.github.io/wiki/definition-files/ We have about 800 commands, so we hope to find an automated solution for this....