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:
I was trying to overload a function this way: lua.set_function("NodesGet", sol::overload( [this](std::vector ids) { return this->NodesGetViaLua(ids); }, [this](std::vector links) { return this->NodesGetByLinksViaLua(links); } )); However it doesn't matter if I...
Sorry, my english is very bad。When I create an object of user-defined type in lua script。It throws an error when no corresponding constructor is found。But,it still create a lua object...
These are extremely difficult to track down in a large codebase with ~100 custom lua functions This error isn't helpful, it would be nice if there was a way to...
This is not exactly a SOL2 problem, but rather a whole Lua and its inverted boolean type concept. Perhaps the founders of Lua had reasons for this, but.. anyway. My...
``` function TEST(i) local a = {} for i=1, 1024*1024*56 do a[i] = 0 end print("a") end ``` Calling in C++ code ``state["TEST"](62);`` This code works fine. But, ``local a``...
I update project from (sol2.26 and lua5.3.4) to (sol3.3 and lua5.4.4) i found some problem sol3 has no func "create_simple_usertype" but sol2 has, what is the instead? is (sol2.26 and...
Ubuntu, gcc11, using luajit. Getting error after upgrading... I don't quite understand what the error is even telling me. Breaks on import no code even runs: ``` include/sol/object_base.hpp:71:118: error: ‘sol::basic_reference’...
``` std::function eq { lua["test_equal"] }; Entity a,b; eq(std::ref(a),std::ref(b)); ``` Will call Entity(const Entity &) and copy-construct parameters to lua function "test_equal". ``` auto eq { lua["test_equal"] }; Entity a,b;...
The value of a C++ variant exposed in Lua can be modified. Elements of a C++ vector exposed in Lua can usually be modified. But elements of a vector of...
Shortly, when including Crypto++, there are some issues with std::byte (first google searches: [1](https://stackoverflow.com/questions/45125957/byte-and-ambiguous-symbol-due-to-using-declarations) [2](https://developercommunity.visualstudio.com/content/problem/93889/error-c2872-byte-ambiguous-symbol.html)) i myself just replaced every reference to std::byte with unsigned char idk if this issue...