lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Perhaps not exactly what you want, but if you just want to know whether
a given state is the top state (or main thread) then you can use
lua_pushthread: it returns 1 if L is the top state.

BTW, the manual entry at
is wrong: it lists lua_pushthread a returning nothing, but lua.h says
it returns int. Sorry about that.