Skip to content

Commit

Permalink
Use __PRETTY_FUNCTION__ for ensures
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Aug 6, 2024
1 parent 2af792f commit 98b24d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/augs/ensure.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ void log_ensure(const char* expr, const char* function, const char* file, int li
#if ENABLE_ENSURE && !FORCE_DISABLE_ENSURE
#define ensure(x) if(Unlikely(!(x)))\
{\
log_ensure(#x, __FUNCTION__, __FILE__, __LINE__ ); \
log_ensure(#x, __PRETTY_FUNCTION__, __FILE__, __LINE__ ); \
}
#else
#define ensure(x)
Expand Down

0 comments on commit 98b24d1

Please sign in to comment.