in lstate.h: #define G(L) (L->l_G) And yes, I used lua_State *mainthread = G(L)->mainthread; to pick the min thread. Regards, Oliver Am 02.03.21 um 22:31 schrieb bel:
Do you have a definition for G()?