Skip to content

Commit

Permalink
core: print function name by default in LOGs
Browse files Browse the repository at this point in the history
  • Loading branch information
poandrei committed Sep 26, 2010
1 parent 4a272b1 commit c3e19d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dprint.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
/** if defined the function name will also be logged. */
#ifdef NO_LOG_FUNC_NAME
# undef LOG_FUNC_NAME
#else
/* by default log the function name */
# define LOG_FUNC_NAME
#endif /* NO_LOG_FUNC_NAME */

/* C >= 99 has __func__, older gcc versions have __FUNCTION__ */
Expand Down

0 comments on commit c3e19d2

Please sign in to comment.