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

Hi, tx for making this library! I am making a C++ -> Lua bridge from a set of C++ classes I already wrote, and so I did some documentation reading,...

cpp code ```c++ template class Request { public: StringT method ; StringT url; }; template struct Response { int statusCode = 0; StringT body; }; template class HttpClient { public:...

```c++ #include #define SOL_ALL_SAFETIES_ON 1 #include class MyException : public std::runtime_error { public: template explicit MyException(Msg&& msg) : std::runtime_error(std::forward(msg)) { } }; int solExceptionHandler(lua_State* L, sol::optional exc, sol::string_view desc) {...

Firstly, thank you for this great library. I noticed a potential easy way to reduce size of the generated code in case when usertype does not need any automagical detection....

```C++ #include #include int main() { sol::state lua; //lua.set_function("main_impl", [](sol::this_state s) { // sol::state_view lua(s); lua["a"] = "blah"; std::int64_t a = lua["a"]; // error here //}); //lua.script("main_impl()"); } ``` This...

I'm using Lua 5.4.4 and Sol 3.3.0. The following program crashes with an uncaught exception, despite my handler. ```cpp sol::state lua; lua.open_libraries (sol::lib::base); lua.script (R"( t = setmetatable({}, { __newindex...

In `push_reference`, where the `use_reference_tag` is calculated, there is a change made in v3.3.0: `meta::neg -> meta::neg` Due to this change, `const T&` args meet the reference condition no more,...

It might be a strange use-case, but I noticed that rebinding a usertype doesn't work with 3.3.0, even though it did in 3.2.1. Is this a bug or an intentional...

Hello, Suppose I have this function in C++ : `void ShaderSetUniformF(ShaderID ID, const std::string& name, std::vector values);` Now in lua, if I write: `ShaderSetUniformF(shader_multi,"col",{0.1, 0.1, 0.4, 1.0})` Things work as...

I'm trying to implement Lua scripting in my game, and if I try to define/call a sol function, the compiler throws up alot of LNK2001 errors such as : ```scripting.obj...