* @brief Detect the operating system used to compile this program. * * @return A string describing the operating system. */
| 674 | * @return A string describing the operating system. |
| 675 | */ |
| 676 | std::string detect_os() |
| 677 | { |
| 678 | #if defined(__linux__) |
| 679 | return "Linux"; |
| 680 | #elif defined(_WIN32) |
| 681 | return "Windows"; |
| 682 | #elif defined(__APPLE__) |
| 683 | return "macOS"; |
| 684 | #else |
| 685 | return "Other"; |
| 686 | #endif |
| 687 | } |
| 688 | |
| 689 | /** |
| 690 | * @brief Detect available C++ features and print them out. |