Browse Source

V0.4.4
1、修改了FmtLog库的文件正则表达式,在Windows下也可以取出文件名

Apple 4 months ago
parent
commit
570d51483c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      common/FmtLog/fmtlog.h

+ 4 - 0
common/FmtLog/fmtlog.h

@@ -17,7 +17,11 @@
 
 
 /* 取出文件名的正则表达式 */
+#if defined (_WIN32)
+const std::regex _reg_file(R"(.*\\([\S]*[\.][\S]*)$)");
+#elif defined(__linux__)
 const std::regex _reg_file(R"(.*/([\S]*[\.][\S]*)$)");
+#endif
 
 /* Debug输出 */
 #define FMTLOG_DEBUG(...) \