File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ endif()
53
53
54
54
set (CMAKE_CXX_STANDARD_REQUIRED TRUE )
55
55
set (CMAKE_CXX_EXTENSIONS OFF )
56
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions" ) # inc branch coverage
56
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -DMY_FILE=' \" $(notdir $(abspath $<)) \" ' " ) # inc branch coverage
57
57
58
58
add_executable (ut_exe )
59
59
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ using namespace std;
19
19
using namespace std ::chrono;
20
20
21
21
// ***********************************************************************************************
22
- #define BUF (content ) __FILE__ << " :" << __LINE__ << " : " << content << endl // __FILE_NAME__ since GCC 12
22
+ #define BUF (content ) MY_FILE << " :" << __LINE__ << " : " << content << endl // __FILE_NAME__ since GCC 12
23
23
#define DBG (content ) { oneLog () << " DBG] " << BUF (content); }
24
24
#define INF (content ) { oneLog () << " INF] " << BUF (content); }
25
25
#define WRN (content ) { oneLog () << " WRN] " << BUF (content); }
You can’t perform that action at this time.
0 commit comments