Hi @Mathias_Westerdahl
I need some help with ne. Can you please help me with it:)
How can i get lua_State *L from anywhere?
1)I can save lua_State *L to global variable when any native function called from lua.
Maybe you know easy way?
I need it because:
box2d is use assert function.
#define b2Assert(A) assert(A)
b2Assert(m_vertices == nullptr && m_count == 0);
b2Assert(count >= 2);
So if b2assert happened it crashed the engine.
I want to change assert to lua_error(L);
But lua_error need lua_State *L