| 664 | // *********************************************************************** |
| 665 | |
| 666 | void Start() { |
| 667 | if (!pState->appLoaded) return; |
| 668 | |
| 669 | lua_State* L = pState->pProgramState; |
| 670 | lua_getglobal(L, "start"); |
| 671 | if (lua_isfunction(L, -1)) { |
| 672 | if (lua_pcall(L, 0, 0, 0) != LUA_OK) { |
| 673 | Log::Warn("Lua Runtime Error: %s", lua_tostring(L, lua_gettop(L))); |
| 674 | lua_pop(L, 1); |
| 675 | } |
| 676 | else { |
| 677 | pState->hasStarted = true; |
| 678 | } |
| 679 | } |
| 680 | } |
| 681 | |
| 682 | // *********************************************************************** |
| 683 |
no outgoing calls
no test coverage detected