Hallo,
On 06/01/16 15:37, Marc Feeley wrote:
I’m curious… how would it be done in Lua?
All C functions exported to the Lua VM must take a `lua_State*` argument. The Lua VM has no global variables and is completely contained in the passed state.
Cheers,