Changeset 38738 in vbox
- Timestamp:
- Sep 13, 2011 2:31:50 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r37535 r38738 80 80 # define IN_RT_STATIC 81 81 # define RT_STRICT 82 # define RT_NO_STRICT 82 83 # define RT_LOCK_STRICT 83 84 # define RT_LOCK_NO_STRICT … … 2145 2146 /** @def RT_STRICT 2146 2147 * The \#define RT_STRICT controls whether or not assertions and other runtime 2147 * checks should be compiled in or not. 2148 * checks should be compiled in or not. This is defined when DEBUG is defined. 2149 * If RT_NO_STRICT is defined, it will unconditionally be undefined. 2148 2150 * 2149 2151 * If you want assertions which are not subject to compile time options use … … 2152 2154 #if !defined(RT_STRICT) && defined(DEBUG) 2153 2155 # define RT_STRICT 2156 #endif 2157 #ifdef RT_NO_STRICT 2158 # undef RT_STRICT 2154 2159 #endif 2155 2160 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltCmn-win.h
r36184 r38738 4 4 * Common header with configuration defines and global defs 5 5 */ 6 6 7 /* 7 8 * Copyright (C) 2011 Oracle Corporation … … 15 16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 17 */ 18 17 19 #ifndef ___VBoxNetFltCmn_win_h___ 18 20 #define ___VBoxNetFltCmn_win_h___ … … 24 26 //# define DEBUG_NETFLT_PACKETS 25 27 # ifndef DEBUG_misha 26 # define DEBUG_NETFLT_NOASSERT28 # define RT_NO_STRICT 27 29 # endif 28 30 /* # define DEBUG_NETFLT_LOOPBACK */ … … 530 532 #include "VBoxNetFltRt-win.h" 531 533 #ifndef VBOXNETADP 532 #include "VBoxNetFltP-win.h" 533 #endif 534 # include "VBoxNetFltM-win.h" 535 536 #ifdef DEBUG_NETFLT_NOASSERT 537 # ifdef Assert 538 # undef Assert 539 # endif 540 541 # define Assert(_expr) do {} while (0) 542 #endif /* #ifdef DEBUG_NETFLT_NOASSERT */ 534 # include "VBoxNetFltP-win.h" 535 #endif 536 #include "VBoxNetFltM-win.h" 543 537 544 538 #endif /* #ifndef ___VBoxNetFltCmn_win_h___ */ -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/nobj/VBoxNetFltNobj.cpp
r36184 r38738 25 25 26 26 #ifdef DEBUG 27 # define Assert(a) assert(a) 28 # define AssertBreakpoint() assert(0) 29 27 # define NonStandardAssert(a) assert(a) 28 # define NonStandardAssertBreakpoint() assert(0) 30 29 #else 31 # define Assert(a) do{}while (0) 32 # define AssertBreakpoint() do{}while (0) 33 30 # define NonStandardAssert(a) do{}while (0) 31 # define NonStandardAssertBreakpoint() do{}while (0) 34 32 #endif 35 33 … … 65 63 cleanup(); 66 64 67 Assert(pNetCfg);68 Assert(pNetCfgComponent);65 NonStandardAssert(pNetCfg); 66 NonStandardAssert(pNetCfgComponent); 69 67 if (pNetCfg) 70 68 { … … 122 120 { 123 121 hr = HRESULT_FROM_WIN32(winEr); 124 AssertBreakpoint();122 NonStandardAssertBreakpoint(); 125 123 } 126 124 … … 129 127 else 130 128 { 131 AssertBreakpoint();129 NonStandardAssertBreakpoint(); 132 130 } 133 131 … … 163 161 { 164 162 hr = HRESULT_FROM_WIN32(winEr); 165 AssertBreakpoint();163 NonStandardAssertBreakpoint(); 166 164 } 167 165 } … … 169 167 { 170 168 hr = HRESULT_FROM_WIN32(winEr); 171 AssertBreakpoint();169 NonStandardAssertBreakpoint(); 172 170 } 173 171 … … 184 182 if (hr != S_OK) 185 183 { 186 AssertBreakpoint();184 NonStandardAssertBreakpoint(); 187 185 } 188 186 RegCloseKey(InstanceKey); … … 190 188 else 191 189 { 192 AssertBreakpoint();190 NonStandardAssertBreakpoint(); 193 191 } 194 192 … … 215 213 else 216 214 { 217 AssertBreakpoint();215 NonStandardAssertBreakpoint(); 218 216 } 219 217 … … 267 265 else 268 266 { 269 AssertBreakpoint();267 NonStandardAssertBreakpoint(); 270 268 *pbShouldBind = true; 271 269 } … … 274 272 { 275 273 /* TODO: we should check the default medium in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\<driver_id>\Ndi\Params\Medium, REG_SZ "Default" value */ 276 AssertBreakpoint();274 NonStandardAssertBreakpoint(); 277 275 *pbShouldBind = true; 278 276 } … … 282 280 else 283 281 { 284 AssertBreakpoint();282 NonStandardAssertBreakpoint(); 285 283 } 286 284 } … … 293 291 else 294 292 { 295 AssertBreakpoint();293 NonStandardAssertBreakpoint(); 296 294 } 297 295 … … 337 335 /* do not set err status to it */ 338 336 *pbShouldBind = false; 339 AssertBreakpoint();337 NonStandardAssertBreakpoint(); 340 338 } 341 339 … … 345 343 { 346 344 hr = HRESULT_FROM_WIN32(winEr); 347 AssertBreakpoint();345 NonStandardAssertBreakpoint(); 348 346 } 349 347 … … 352 350 else 353 351 { 354 AssertBreakpoint();352 NonStandardAssertBreakpoint(); 355 353 } 356 354 … … 369 367 if (hr != S_OK) 370 368 { 371 AssertBreakpoint();369 NonStandardAssertBreakpoint(); 372 370 break; 373 371 } … … 443 441 else 444 442 { 445 AssertBreakpoint();443 NonStandardAssertBreakpoint(); 446 444 } 447 445 … … 490 488 else 491 489 { 492 AssertBreakpoint();490 NonStandardAssertBreakpoint(); 493 491 /* break on falure */ 494 492 break; … … 498 496 else 499 497 { 500 AssertBreakpoint();498 NonStandardAssertBreakpoint(); 501 499 } 502 500 … … 505 503 else 506 504 { 507 AssertBreakpoint();505 NonStandardAssertBreakpoint(); 508 506 } 509 507
Note:
See TracChangeset
for help on using the changeset viewer.