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

I've simplified one of the examples and added a repeated registration of the same type. Depending on the number of registrations (cycles) script will either work as expected or throw...

I've read the docs and am trying to build a REPL, of sorts, in a QT application. The application is a TCP-based game (kinda like a MUD of old) and...

I'd like to override the base types of Lua (e.g. maybe replacing the integer type with an arbitrary-precision integer, or a string with a custom string class). Is this even...

Lua: 5,4 Sol: trunk I am trying to implement an interface that requires at least one of the `sol::property` functions to yield. I've run into the issue that `sol::property` does...

**Describe:** Hi all, SOL2 failed to setup with CMake Error on MSVC. Could you please help look at this issue or provide some workarounds? Thanks in advance. **For Error Reports:**...

There seems to be no documentation on this specific metamethod. My assumption based on the context is that this metamethod acts the same way as `sol:call_constructor` when creating a new...

Take this code: ```c++ #define SOL_ALL_SAFETIES_ON 1 #define SOL_EXCEPTIONS_SAFE_PROPAGATION 1 #include #include #include int make_logic_err() { throw std::logic_error("highly illogical jim"); } int main() { sol::state lua; lua.open_libraries(sol::lib::base); lua["make_logic_err"] = make_logic_err;...

My IDE: Microsoft Visual Studio Community 2022 v17.4.5 The code 1: ```c++ #define SOL_ALL_SAFETIES_ON 1 #define SOL_SAFE_FUNCTIONS 0 #include #include int main() { sol::state lua; try { sol::function f =...

I've been doing some testing with get_or(), it seems ideal for my use case but so far it seems to fail to recognise the existing Lua table by the same...

I'm looking for a way to invalidate Lua references so I can match their lifetimes to the CPP object they point to. It looks like manually setting the metatable to...