Skip to content

Commit

Permalink
update tarscpp fix __FILENAME__
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Dec 12, 2023
1 parent 53c5afa commit 634e8ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions NodeServer/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

using namespace tars;

#if TARGET_PLATFORM_WINDOWS
#define __FILENAME__ (strrchr(__FILE__, '\\') ? (strrchr(__FILE__, '\\') + 1):__FILE__)
#else
#define __FILENAME__ (strrchr(__FILE__, '/') ? (strrchr(__FILE__, '/') + 1):__FILE__)
#endif
//#if TARGET_PLATFORM_WINDOWS
//#define __FILENAME__ (strrchr(__FILE__, '\\') ? (strrchr(__FILE__, '\\') + 1):__FILE__)
//#else
//#define __FILENAME__ (strrchr(__FILE__, '/') ? (strrchr(__FILE__, '/') + 1):__FILE__)
//#endif

#define FILE_FUN __FILENAME__<<":"<<__FUNCTION__<<":"<<__LINE__<<"|"
#define FILE_FUN_STR TC_Common::tostr(__FILENAME__)+":"+TC_Common::tostr(__FUNCTION__)+":"+TC_Common::tostr(__LINE__)+"|"
Expand Down

0 comments on commit 634e8ac

Please sign in to comment.