Changeset 39034 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Oct 19, 2011 11:43:52 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 74454
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.