|
|
||
|
David Burgess wrote:Thirdsies! It's the only thing we add to ourselves, even though we're using Lua for large projects. With "lua_" instead of "luaL" though. Wouldn't it be more something of a core function?Can you add
lua_State* mL= luaL_getmainthread(L); // returns the main lua state
to the list?
I second that. Also, at the moment, checking if a thread is the main one is a little cumbersome (i.e. pushthread, checking the return value and then poping the thread). luaL_getmainthread would allow for an easy equality test.
-- Kind regards,
Daan Nusman, M.Sc. re-lion +31 53 4356687