Changeset 7847 for trunk/src/kernel32/dbgwrap.h
- Timestamp:
- Feb 8, 2002, 5:47:11 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/dbgwrap.h
r7846 r7847 174 174 } 175 175 176 //level 2 logging 177 178 #define DEBUGWRAP_LVL2_0(a) \ 179 DWORD WIN32API Dbg##a() \ 180 { \ 181 DWORD ret; \ 182 dprintf((DBGWRAP_MODULE": %s", #a)); \ 183 dbg_ThreadPushCall(#a); \ 184 ret = ((DBG_WINPROC0)a)(); \ 185 dbg_ThreadPopCall(); \ 186 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 187 return ret; \ 188 } 189 190 #define DEBUGWRAP_LVL2_4(a) \ 191 DWORD WIN32API Dbg##a(DWORD arg1) \ 192 { \ 193 DWORD ret; \ 194 dprintf((DBGWRAP_MODULE": %s %x", #a, arg1)); \ 195 dbg_ThreadPushCall(#a); \ 196 ret = ((DBG_WINPROC4)a)(arg1); \ 197 dbg_ThreadPopCall(); \ 198 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 199 return ret; \ 200 } 201 202 #define DEBUGWRAP_LVL2_8(a) \ 203 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2) \ 204 { \ 205 DWORD ret; \ 206 dprintf((DBGWRAP_MODULE": %s %x %x", #a, arg1, arg2)); \ 207 dbg_ThreadPushCall(#a); \ 208 ret = ((DBG_WINPROC8)a)(arg1, arg2); \ 209 dbg_ThreadPopCall(); \ 210 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 211 return ret; \ 212 } 213 214 #define DEBUGWRAP_LVL2_12(a) \ 215 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3) \ 216 { \ 217 DWORD ret; \ 218 dprintf((DBGWRAP_MODULE": %s %x %x %x", #a, arg1, arg2, arg3)); \ 219 dbg_ThreadPushCall(#a); \ 220 ret = ((DBG_WINPROC12)a)(arg1, arg2, arg3); \ 221 dbg_ThreadPopCall(); \ 222 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 223 return ret; \ 224 } 225 226 #define DEBUGWRAP_LVL2_16(a) \ 227 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4) \ 228 { \ 229 DWORD ret; \ 230 dprintf((DBGWRAP_MODULE": %s %x %x %x %x", #a, arg1, arg2, arg3, arg4)); \ 231 dbg_ThreadPushCall(#a); \ 232 ret = ((DBG_WINPROC16)a)(arg1, arg2, arg3, arg4); \ 233 dbg_ThreadPopCall(); \ 234 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 235 return ret; \ 236 } 237 238 #define DEBUGWRAP_LVL2_20(a) \ 239 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5) \ 240 { \ 241 DWORD ret; \ 242 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5)); \ 243 dbg_ThreadPushCall(#a); \ 244 ret = ((DBG_WINPROC20)a)(arg1, arg2, arg3, arg4, arg5); \ 245 dbg_ThreadPopCall(); \ 246 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 247 return ret; \ 248 } 249 250 #define DEBUGWRAP_LVL2_24(a) \ 251 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6) \ 252 { \ 253 DWORD ret; \ 254 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg6)); \ 255 dbg_ThreadPushCall(#a); \ 256 ret = ((DBG_WINPROC24)a)(arg1, arg2, arg3, arg4, arg5, arg6); \ 257 dbg_ThreadPopCall(); \ 258 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 259 return ret; \ 260 } 261 262 #define DEBUGWRAP_LVL2_28(a) \ 263 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7) \ 264 { \ 265 DWORD ret; \ 266 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7)); \ 267 dbg_ThreadPushCall(#a); \ 268 ret = ((DBG_WINPROC28)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7); \ 269 dbg_ThreadPopCall(); \ 270 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 271 return ret; \ 272 } 273 274 #define DEBUGWRAP_LVL2_32(a) \ 275 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8) \ 276 { \ 277 DWORD ret; \ 278 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8)); \ 279 dbg_ThreadPushCall(#a); \ 280 ret = ((DBG_WINPROC32)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); \ 281 dbg_ThreadPopCall(); \ 282 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 283 return ret; \ 284 } 285 286 #define DEBUGWRAP_LVL2_36(a) \ 287 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9) \ 288 { \ 289 DWORD ret; \ 290 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9)); \ 291 dbg_ThreadPushCall(#a); \ 292 ret = ((DBG_WINPROC36)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); \ 293 dbg_ThreadPopCall(); \ 294 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 295 return ret; \ 296 } 297 298 #define DEBUGWRAP_LVL2_40(a) \ 299 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10) \ 300 { \ 301 DWORD ret; \ 302 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10)); \ 303 dbg_ThreadPushCall(#a); \ 304 ret = ((DBG_WINPROC40)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); \ 305 dbg_ThreadPopCall(); \ 306 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 307 return ret; \ 308 } 309 310 #define DEBUGWRAP_LVL2_44(a) \ 311 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10, DWORD arg11) \ 312 { \ 313 DWORD ret; \ 314 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11)); \ 315 dbg_ThreadPushCall(#a); \ 316 ret = ((DBG_WINPROC44)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); \ 317 dbg_ThreadPopCall(); \ 318 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 319 return ret; \ 320 } 321 322 #define DEBUGWRAP_LVL2_48(a) \ 323 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10, DWORD arg11, DWORD arg12) \ 324 { \ 325 DWORD ret; \ 326 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11, arg12)); \ 327 dbg_ThreadPushCall(#a); \ 328 ret = ((DBG_WINPROC48)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); \ 329 dbg_ThreadPopCall(); \ 330 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 331 return ret; \ 332 } 333 176 334 177 335 #endif
Note:
See TracChangeset
for help on using the changeset viewer.