Skip to content

Commit

Permalink
use __FILENAME__
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypp committed May 5, 2022
1 parent 1954e20 commit 06624b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
#pragma comment(lib, "wintrust.lib")

// log
#define DBG_ARG TEXT(__FILE__), __LINE__
#define __FILENAME__ (PathFindFileName (TEXT (__FILE__)))

#define DBG_ARG __FILENAME__, __LINE__
#define DBG_ARG_VAR file_name, line

// guids
Expand Down

0 comments on commit 06624b2

Please sign in to comment.