static int CloseAll(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); UIAPI.CloseAll(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }