]> git.sesse.net Git - stockfish/blobdiff - src/tt.cpp
Rewrite the way application exits
[stockfish] / src / tt.cpp
index 83eaf800ac480aabd64856c5d02ac3b27d8cffa5..a0cc7922395cb2a86bba11a1adbd29eacd78f305 100644 (file)
@@ -69,7 +69,7 @@ void TranspositionTable::set_size(unsigned mbSize) {
       {
           std::cerr << "Failed to allocate " << mbSize
                     << " MB for transposition table." << std::endl;
-          exit(EXIT_FAILURE);
+          Application::exit_with_failure();
       }
       clear();
   }