Re: Proposed C API function: lua_getmainthread
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Proposed C API function: lua_getmainthread
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2006年3月10日 22:20:39 -0300
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
http://www.lua.org/manual/5.1/manual.html#lua_pushthread
is wrong: it lists lua_pushthread a returning nothing, but lua.h says
it returns int. Sorry about that.
--lhf