Removed ENABLE_TEST_CMD macro.

This commit is contained in:
nodchip
2020-09-08 22:59:57 +09:00
parent 21cfead52c
commit 1d00d00241
4 changed files with 5 additions and 20 deletions

View File

@@ -24,17 +24,14 @@
#include "evaluate.h"
#include "movegen.h"
#include "nnue/nnue_test_command.h"
#include "position.h"
#include "search.h"
#include "syzygy/tbprobe.h"
#include "thread.h"
#include "timeman.h"
#include "tt.h"
#include "uci.h"
#include "syzygy/tbprobe.h"
#if defined(ENABLE_TEST_CMD)
#include "nnue/nnue_test_command.h"
#endif
using namespace std;
@@ -67,7 +64,6 @@ namespace Learner
}
#endif
#if defined(ENABLE_TEST_CMD)
void test_cmd(Position& pos, istringstream& is)
{
// Initialize as it may be searched.
@@ -78,7 +74,6 @@ void test_cmd(Position& pos, istringstream& is)
if (param == "nnue") Eval::NNUE::TestCommand(pos, is);
}
#endif
namespace {
@@ -373,10 +368,8 @@ void UCI::loop(int argc, char* argv[]) {
#endif
#if defined(ENABLE_TEST_CMD)
// test command
else if (token == "test") test_cmd(pos, is);
#endif
else
sync_cout << "Unknown command: " << cmd << sync_endl;