SVCS - English Documentation
Loading...
Searching...
No Matches
Utils.hxx
Go to the documentation of this file.
1
19#pragma once
20
21#include <iostream>
22#include <string>
23
37namespace svcs::cli {
38
46 *
47 * @russian
48 * @def DEBUG_MODE
49 * @brief Макрос препроцессора для включения или отключения отладочного логирования.
50 * @details Если этот макрос определен (например, через флаг компилятора `-DDEBUG_MODE` или
51 * раскомментировав определение в этом файле), функция printDebug() будет
52 * выводить свои сообщения. В противном случае она компилируется в пустую операцию.
53 */
54//#define DEBUG_MODE // Uncommenting this line enables debug logging
55
73inline void printDebug(const std::string& message) {
74 #ifdef DEBUG_MODE
75 std::cout << "DEBUG: " << message << std::endl;
76 #endif
77}
78
79}
Command-line interface components and command implementations.
void printDebug(const std::string &message)
Conditionally prints a debug message to standard output.
Definition Utils.hxx:46