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
trafficstars

I have a simple program that reads a set of Lua files for plugins and creates a `std::vector` containing the `sol::state` and some `std::function`s that point to the `sol::state`. This...

Is there a suggested way to make chains of properties "safe" in a reasonably low overheard way? example: `local a = thing.transform.position.x` where `thing`, `transform` and `position` is a user...

I using `conan2` to get `sol2` into my project. I am using `cmake` with `mingw`. I have compiled and installed `lua 5.4.6` with mingw's `gcc 12.2` aswell. When I compile...

Consider: ```C++ static int x = 1; ``` And binding with: ```C++ state["num"] = sol::var(std::ref(x)); ``` Now `print(num)` gives `function:000000...` (hex address), which should be a number instead. I even...

```cpp #define SOL_ALL_SAFETIES_ON 1 #include #include int main(int, char**) { std::cout

[as mentioned here](https://sol2.readthedocs.io/en/latest/api/usertype_memory.html#to-retrieve-a-t) this is causing an issue for me as my functions return a pointer to the object in which other functions expect a direct pointer aswell, creating double...

```cpp #define SOL_ALL_SAFETIES_ON 1 #include struct A { bool val; A() = default; A(bool val) : val(val) {} std::vector vector_as_object() { return { *this }; } }; A operator ==...

Hello, I'm new to Lua and only intermediate at C++ at best, so I apologize if this is a dumb question. In short, I'm trying to access a particular [Intrusive...

Hey, I am porting a project from LuaBind to Sol3 and was wondering if I could get some help. We've got a lot of old scripts, and a long history...