예제 #1
0
파일: lapi.c 프로젝트: AdunSG/Pktgen-DPDK
LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
  StkId o = index2addr(L, idx);
  return (!ttisthread(o)) ? NULL : thvalue(o);
}
예제 #2
0
파일: lapi.c 프로젝트: TheWaWaR/my-lua5.0
LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
  StkId o = luaA_indexAcceptable(L, idx);
  return (o == NULL || !ttisthread(o)) ? NULL : thvalue(o);
}