Changeset 39034 in vbox for trunk/include/VBox
- Timestamp:
- Oct 19, 2011 11:43:52 AM (13 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/intnet.h
r37979 r39034 78 78 * Asserts the sanity of the specified INTNETRINGBUF structure. 79 79 */ 80 #define INTNETRINGBUF_ASSERT_SANITY(pRingBuf) \ 80 #ifdef VBOX_STRICT 81 # define INTNETRINGBUF_ASSERT_SANITY(pRingBuf) \ 81 82 do \ 82 83 { \ … … 104 105 } \ 105 106 } while (0) 107 #else 108 # define INTNETRINGBUF_ASSERT_SANITY(pRingBuf) do { } while (0) 109 #endif 106 110 107 111 … … 248 252 * Asserts the sanity of the specified INTNETHDR. 249 253 */ 254 #ifdef VBOX_STRICT 250 255 #define INTNETHDR_ASSERT_SANITY(pHdr, pRingBuf) \ 251 256 do \ … … 268 273 } \ 269 274 } while (0) 275 #else 276 # define INTNETHDR_ASSERT_SANITY(pHdr, pRingBuf) do { } while (0) 277 #endif 270 278 271 279 -
trunk/include/VBox/vmm/vm.h
r38879 r39034 240 240 ASMAtomicCmpXchgU32((uint32_t volatile *)&(pVCpu)->enmState, (enmNewState), (enmOldState)) 241 241 /** Checks the VMCPU state. */ 242 #define VMCPU_ASSERT_STATE(pVCpu, enmExpectedState) \ 242 #ifdef VBOX_STRICT 243 # define VMCPU_ASSERT_STATE(pVCpu, enmExpectedState) \ 243 244 do { \ 244 245 VMCPUSTATE enmState = VMCPU_GET_STATE(pVCpu); \ … … 247 248 enmState, enmExpectedState, (pVCpu)->idCpu)); \ 248 249 } while (0) 250 #else 251 # define VMCPU_ASSERT_STATE(pVCpu, enmExpectedState) do { } while (0) 252 #endif 249 253 /** Tests if the state means that the CPU is started. */ 250 254 #define VMCPUSTATE_IS_STARTED(enmState) ( (enmState) > VMCPUSTATE_STOPPED )
Note:
See TracChangeset
for help on using the changeset viewer.