source/CompilationDetails.cpp
// Get the OS/platform used to compile the binary.
Get the OS/platform used to compile the binary.
Get the OS / platform used to compile the binary .
string CompilationDetails::get_platform() const
{
  ostringstream oss;
  #ifdef _WIN64
  oss << "Win64";
  #elif defined(_WIN32)
  oss << "Win32";
  #elif defined(__linux__)
  oss << "Linux";
  #elif (defined(__APPLE__) && defined(__MACH__))
  oss << "MacOS";  
  #else
  static_assert(false, "Platform not recognized");
  #endif
  return oss.str();
}
string CompilationDetails :: get_platform ( ) const { ostringstream oss ; #ifdef _WIN64 oss << " " ; #elif defined ( _WIN32 ) oss << " " ; #elif defined ( __linux__ ) oss << " " ; #elif ( defined ( __APPLE__ ) && defined ( __MACH__ ) ) oss << " " ; #else static_assert ( false , " " ) ; #endif return oss . str ( ) ; }
Get the OS/platform used to compile the binary.
Get the OS / platform used to compile the binary .
// This needs to be filled in when porting to Linux/FreeBSD/MacOS/etc.