Closed solemnwarning closed 3 years ago
Its needed for handling the wxLua events with Bind(), for example my current prototype:
wxEvtHandler *eh = new wxEvtHandler;
eh->Bind(wxEVT_LUA_ERROR, [&](wxLuaEvent &event)
{
fprintf(stderr, "wxEVT_LUA_ERROR: %s\n", event.GetString().mb_str().data());
return;
});
wxLuaState s(eh);
@solemnwarning, thank you for the patch! Any details/examples on why this may be needed?