Changeset 21916 for trunk/include/dbglog.h
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/include/dbglog.h
r21601 r21916 78 78 79 79 80 int SYSTEM WriteLog(c har *tekst, ...);81 int SYSTEM WriteLogNoEOL(c har *tekst, ...);82 int SYSTEM WritePrivateLog(void *logfile, c har *tekst, ...);80 int SYSTEM WriteLog(const char *tekst, ...); 81 int SYSTEM WriteLogNoEOL(const char *tekst, ...); 82 int SYSTEM WritePrivateLog(void *logfile, const char *tekst, ...); 83 83 84 84 void SYSTEM DecreaseLogCount(); … … 99 99 100 100 /* enable support for the _interrupt() statement */ 101 #if (defined(__IBMCPP__) || defined(__IBMC__)) 101 #if defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) 102 103 #ifndef __GNUC__ 102 104 # include <builtin.h> 105 #endif 106 103 107 #ifdef DEBUG 108 104 109 #ifdef __cplusplus 105 110 106 #define DebugInt3() BreakPoint(__FILE__, __FUNCTION__, __LINE__) 111 #ifdef PRIVATE_LOGGING 112 #define DebugInt3() do { \ 113 dprintf((LOG, "BREAKPOINT %s %s %d", __FILE__, __FUNCTION__, __LINE__)); \ 114 _interrupt(3); \ 115 } while (0) 116 #else 117 #define DebugInt3() do { \ 118 dprintf(("BREAKPOINT %s %s %d", __FILE__, __FUNCTION__, __LINE__)); \ 119 _interrupt(3); \ 120 } while (0) 121 #endif 107 122 108 void inline BreakPoint(char *szFile, char *szFunction, int iLine) 109 { 110 dprintf(("BREAKPOINT %s %s %d", szFile, szFunction, iLine)); 111 _interrupt(3); 112 } 113 114 #else 123 #else /* __cplusplus */ 115 124 #define DebugInt3() _interrupt(3) 116 125 #endif 117 #else 126 127 #else /* DEBUG */ 118 128 #define DebugInt3() 119 129 #endif 120 130 121 #else 131 #else /* defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) */ 132 122 133 #ifdef DEBUG 123 134 #define DebugInt3() _asm int 3; … … 126 137 #endif 127 138 128 #endif 139 #endif /* defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) */ 129 140 130 141 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.