Asen Kovachev

Results 5 comments of Asen Kovachev

Is there NOLINT for a section? i.e. // NOLINTBEGIN ... entire section with no lint... // NOLINTEND This may be better than NOLINTFILE

+1 Thank you for the tip! I ran into the same problem.

@Rochet2 Thank you for your suggestion. However the goal is cpp:memberFunction to be called from the C++ class such that the Lua implementation has access to the Lua self table....

In short I need something like `returns_self`, but instead of returning it, for it to be passed in as sol::object or sol::reference to a bound member function. Attaching one of...

I think I found the solution, it's not super obvious, but there is a working example: https://github.com/ThePhD/sol2/blob/develop/examples/source/self_from_lua.cpp The key is to dig inside the state's stack using this_state (from the...