main() #endif { int iret; tree_t * restrict ptree; #if defined(TLP) ptree = tlp_atree_work; #else ptree = &tree; #endif #if defined(CSASHOGI) && defined(_WIN32) if ( argc != 2 || strcmp( argv[1], "csa_shogi" ) ) { MessageBox( NULL, "The executable image is not intended\x0d" "as an independent program file.\x0d" "Execute CSA.EXE instead.", str_myname, MB_OK | MB_ICONINFORMATION ); return EXIT_FAILURE; } #endif #if defined(USI) if ( argc == 2 && ! strcmp( argv[1], "usi" ) ) { usi_mode = usi_on; } else { usi_mode = usi_off; } #endif if ( ini( ptree ) < 0 ) { out_error( "%s", str_error ); return EXIT_SUCCESS; } for ( ;; ) { iret = main_child( ptree ); if ( iret == -1 ) { out_error( "%s", str_error ); ShutdownAll(); break; } else if ( iret == -2 ) { out_warning( "%s", str_error ); ShutdownAll(); continue; } else if ( iret == -3 ) { break; } } if ( fin() < 0 ) { out_error( "%s", str_error ); } return EXIT_SUCCESS; }
/** @brief Destructor */ KinectContext::~KinectContext() { ShutdownAll(); RemoveAll(); }
CServerSocket::~CServerSocket() { ShutdownAll(); }