I take the following line in stockfish's code that is the first line in main.cpp line 37
Code: Select all
std::cout << engine_info() << std::endl;
I want information like the following about stockfish and the question is if there is a tool to give the information without searching for a long time in the code.
fathers of line 37 in main.cpp are
1)line 21 of main.cpp
Code: Select all
#include <iostream>
Code: Select all
#include "tt.h"
Code: Select all
#include "misc.h"
Code: Select all
const std::string engine_info(bool to_uci = false);
Code: Select all
const string engine_info(bool to_uci) {
const string months("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec");
string month, day, year;
stringstream ss, date(__DATE__); // From compiler, format is "Sep 21 2008"
ss << "Stockfish " << Version << setfill('0');
if (Version.empty())
{
date >> month >> day >> year;
ss << setw(2) << day << setw(2) << (1 + months.find(month) / 4) << year.substr(2);
}
ss << (Is64Bit ? " 64" : "")
<< (HasPext ? " BMI2" : (HasPopCnt ? " POPCNT" : ""))
<< (to_uci ? "\nid author ": " by ")
<< "T. Romstad, M. Costalba, J. Kiiski, G. Linscott";
return ss.str();
}
line 27 of misc.cpp
Code: Select all
#include <string>