Changeset 31399 in vbox
- Timestamp:
- Aug 5, 2010 12:22:35 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64462
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/log.h
r28800 r31399 820 820 821 821 822 /** @name Passing Function Call Position When Logging. 823 * 824 * This is a little bit ugly as we have to omit the comma before the 825 * position parameters so that we don't inccur any overhead in non-logging 826 * builds (!defined(LOG_ENABLED). 827 * 828 * @{ */ 829 /** Source position for passing to a function call. */ 830 #ifdef LOG_ENABLED 831 # define RTLOG_COMMA_SRC_POS , __FILE__, __LINE__, __PRETTY_FUNCTION__ 832 #else 833 # define RTLOG_COMMA_SRC_POS RT_NOTHING 834 #endif 835 /** Source position declaration. */ 836 #ifdef LOG_ENABLED 837 # define RTLOG_COMMA_SRC_POS_DECL , const char *pszFile, unsigned iLine, const char *pszFunction 838 #else 839 # define RTLOG_COMMA_SRC_POS_DECL RT_NOTHING 840 #endif 841 /** Source position arguments. */ 842 #ifdef LOG_ENABLED 843 # define RTLOG_COMMA_SRC_POS_ARGS , pszFile, iLine, pszFunction 844 #else 845 # define RTLOG_COMMA_SRC_POS_ARGS RT_NOTHING 846 #endif 847 /** Applies NOREF() to the source position arguments. */ 848 #ifdef LOG_ENABLED 849 # define RTLOG_SRC_POS_NOREF() do { NOREF(pszFile); NOREF(iLine); NOREF(pszFunction); } while (0) 850 #else 851 # define RTLOG_SRC_POS_NOREF() do { } while (0) 852 #endif 853 /** @} */ 854 822 855 823 856
Note:
See TracChangeset
for help on using the changeset viewer.