Changeset 6834 in vbox for trunk/include
- Timestamp:
- Feb 6, 2008 7:57:32 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27953
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vm.h
r6819 r6834 205 205 #endif 206 206 207 208 207 /** @def VM_ASSERT_EMT_RETURN 209 208 * Asserts that the current thread IS the emulation thread (EMT) and returns if it isn't. … … 220 219 #endif 221 220 222 223 221 /** 224 222 * Asserts that the current thread is NOT the emulation thread. … … 226 224 #define VM_ASSERT_OTHER_THREAD(pVM) \ 227 225 AssertMsg(!VM_IS_EMT(pVM), ("Not other thread!!\n")) 226 227 228 /** @def VM_ASSERT_STATE_RETURN 229 * Asserts a certain VM state. 230 */ 231 #define VM_ASSERT_STATE(pVM, _enmState) \ 232 AssertMsg((pVM)->enmVMState == (_enmState), \ 233 ("state %s, expected %s\n", VMGetStateName(pVM->enmVMState), VMGetStateName(_enmState))) 234 235 /** @def VM_ASSERT_STATE_RETURN 236 * Asserts a certain VM state and returns if it doesn't match. 237 */ 238 #define VM_ASSERT_STATE_RETURN(pVM, _enmState, rc) \ 239 AssertMsgReturn((pVM)->enmVMState == (_enmState), \ 240 ("state %s, expected %s\n", VMGetStateName(pVM->enmVMState), VMGetStateName(_enmState)), \ 241 (rc)) 242 228 243 229 244
Note:
See TracChangeset
for help on using the changeset viewer.