mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Clean up previous patch
This commit is contained in:
16
src/misc.h
16
src/misc.h
@@ -53,16 +53,20 @@ void dbg_hit_on(bool c, bool b);
|
||||
void dbg_mean_of(int v);
|
||||
void dbg_print();
|
||||
|
||||
/// Debug macro to write to std::err if NDEBUG flag is set, and do nothing otherwise
|
||||
#if defined(NDEBUG)
|
||||
template <typename... Ts>
|
||||
void debug_print(const Ts&...) {}
|
||||
#define debug 1 && std::cerr
|
||||
#else
|
||||
template <typename... Ts>
|
||||
void debug_print(const Ts&... v) {
|
||||
((std::cerr << v), ...);
|
||||
}
|
||||
#define debug 0 && std::cerr
|
||||
#endif
|
||||
|
||||
inline void hit_any_key() {
|
||||
#ifndef NDEBUG
|
||||
debug << "Hit any key to continue..." << std::endl << std::flush;
|
||||
system("read"); // on Windows, should be system("pause");
|
||||
#endif
|
||||
}
|
||||
|
||||
typedef std::chrono::milliseconds::rep TimePoint; // A value in milliseconds
|
||||
static_assert(sizeof(TimePoint) == sizeof(int64_t), "TimePoint should be 64 bits");
|
||||
inline TimePoint now() {
|
||||
|
||||
564
src/search.cpp
564
src/search.cpp
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user