Commit 1bd9dab9 authored by Zhiping Jiang (蒋志平)'s avatar Zhiping Jiang (蒋志平) 💬

add showAndRunCode preprocessors

parent aef91ae0
Pipeline #20906603 passed with stage
in 2 minutes and 13 seconds
......@@ -51,4 +51,6 @@ inline void 暂停(const std::string &暂停时显示的内容) {
EnhancedConsoleText::press2Continue(暂停时显示的内容);
}
#define 显示并运行代码(code) 显示("[代码,第" + std::to_string(__LINE__) + "行,"+__func__+"方法]=> \""+ #code +"\"", 正常, 左对齐, 绿色); code
#endif //CHINESESHELL_HXX
......@@ -72,4 +72,6 @@ namespace EnhancedConsoleText {
void press2Continue(const std::string content = "Press any key to continue...");
};
#define showAndRunCode(code) EnhancedConsoleText::println("[Code, line " + std::to_string(__LINE__) + ", method: "+__func__+"]=> \""+ #code +"\"", FontEffect::Reset, LineAlignment::Left, FrontColor::Green); code
#endif //ENHANCEDCONSOLETEXT_HXX
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment