- Timestamp:
- Aug 13, 2015 9:03:02 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/k/kHlpAssert.h
r46 r70 58 58 #endif 59 59 60 /** @def K_FUNCTION 61 * Undecorated function name macro expanded by the compiler. 62 */ 63 #if defined(__GNUC__) 64 # define K_FUNCTION __func__ 65 #else 66 # define K_FUNCTION __FUNCTION__ 67 #endif 68 60 69 #ifdef K_STRICT 61 70 … … 64 73 if (!(expr)) \ 65 74 { \ 66 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \75 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 67 76 kHlpAssertBreakpoint(); \ 68 77 } \ … … 73 82 if (!(expr)) \ 74 83 { \ 75 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \84 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 76 85 kHlpAssertBreakpoint(); \ 77 86 stmt; \ … … 83 92 if (!(expr)) \ 84 93 { \ 85 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \94 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 86 95 kHlpAssertBreakpoint(); \ 87 96 return (rcRet); \ … … 93 102 if (!(expr)) \ 94 103 { \ 95 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \104 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 96 105 kHlpAssertBreakpoint(); \ 97 106 stmt; \ … … 104 113 if (!(expr)) \ 105 114 { \ 106 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \115 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 107 116 kHlpAssertBreakpoint(); \ 108 117 return; \ … … 114 123 if (!(expr)) \ 115 124 { \ 116 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \125 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 117 126 kHlpAssertBreakpoint(); \ 118 127 stmt; \ … … 125 134 if (!(expr)) \ 126 135 { \ 127 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \136 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 128 137 kHlpAssertMsg2 msg; \ 129 138 kHlpAssertBreakpoint(); \ … … 135 144 if (!(expr)) \ 136 145 { \ 137 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \146 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 138 147 kHlpAssertMsg2 msg; \ 139 148 kHlpAssertBreakpoint(); \ … … 146 155 if (!(expr)) \ 147 156 { \ 148 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \157 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 149 158 kHlpAssertMsg2 msg; \ 150 159 kHlpAssertBreakpoint(); \ … … 157 166 if (!(expr)) \ 158 167 { \ 159 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \168 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 160 169 kHlpAssertMsg2 msg; \ 161 170 kHlpAssertBreakpoint(); \ … … 169 178 if (!(expr)) \ 170 179 { \ 171 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \180 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 172 181 kHlpAssertMsg2 msg; \ 173 182 kHlpAssertBreakpoint(); \ … … 180 189 if (!(expr)) \ 181 190 { \ 182 kHlpAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \191 kHlpAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 183 192 kHlpAssertMsg2 msg; \ 184 193 kHlpAssertBreakpoint(); \ -
trunk/kDbg/kDbgHlp.h
r29 r70 243 243 if (!(expr)) \ 244 244 { \ 245 kDbgAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \245 kDbgAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 246 246 kDbgAssertBreakpoint(); \ 247 247 } … … 252 252 if (!(expr)) \ 253 253 { \ 254 kDbgAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \254 kDbgAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 255 255 kDbgAssertBreakpoint(); \ 256 256 return (rcRet); \ … … 262 262 if (!(expr)) \ 263 263 { \ 264 kDbgAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \264 kDbgAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 265 265 kDbgAssertMsg2 msg; \ 266 266 kDbgAssertBreakpoint(); \ … … 272 272 if (!(expr)) \ 273 273 { \ 274 kDbgAssertMsg1(#expr, __FILE__, __LINE__, __FUNCTION__); \274 kDbgAssertMsg1(#expr, __FILE__, __LINE__, K_FUNCTION); \ 275 275 kDbgAssertMsg2 msg; \ 276 276 kDbgAssertBreakpoint(); \
Note:
See TracChangeset
for help on using the changeset viewer.