| 514 | //============================================================================// |
| 515 | |
| 516 | static void PushCallInInfo(lua_State* L, const LuaCallInDB::CallInInfo& ciInfo) { |
| 517 | lua_newtable(L); |
| 518 | luaset_strint(L, "code", ciInfo.code); |
| 519 | luaset_strbool(L, "reqFullRead", ciInfo.reqFullRead); |
| 520 | luaset_strbool(L, "reqInputCtrl", ciInfo.reqInputCtrl); |
| 521 | luaset_strbool(L, "reversed", ciInfo.reversed); |
| 522 | luaset_strbool(L, "reentrant", ciInfo.reentrant); |
| 523 | luaset_strstr(L, "loopType", ciInfo.loopType); |
| 524 | if (LuaHandle::GetDevMode()) { |
| 525 | lua_pushliteral(L, "func"); |
| 526 | lua_rawgeti(L, LUA_CALLINSINDEX, ciInfo.code); |
| 527 | if (!lua_isfunction(L, -1)) { |
| 528 | lua_pop(L, 1); |
| 529 | lua_pushboolean(L, false); |
| 530 | } |
| 531 | lua_rawset(L, -3); |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | |
| 536 | int LuaHandle::ScriptGetCallInInfo(lua_State* L) { |
no test coverage detected