Changeset 90803 in vbox for trunk/src/VBox/Runtime/common/time
- Timestamp:
- Aug 23, 2021 7:08:38 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146438
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/time/time.cpp
r82968 r90803 295 295 int iMonth; 296 296 297 Assert Msg(VALID_PTR(pTime), ("%p\n", pTime));298 Assert Msg(VALID_PTR(pTimeSpec), ("%p\n", pTime));297 AssertPtr(pTime); 298 AssertPtr(pTimeSpec); 299 299 300 300 /* … … 414 414 * Validate input. 415 415 */ 416 Assert Return(VALID_PTR(pTimeSpec), NULL);417 Assert Return(VALID_PTR(pTime), NULL);416 AssertPtrReturn(pTimeSpec, NULL); 417 AssertPtrReturn(pTime, NULL); 418 418 AssertReturn(pTime->u32Nanosecond < 1000000000, NULL); 419 419 AssertReturn(pTime->u8Second < 60, NULL); … … 696 696 * Validate that we've got the minimum of stuff handy. 697 697 */ 698 Assert Return(VALID_PTR(pTime), NULL);698 AssertPtrReturn(pTime, NULL); 699 699 AssertMsgReturn(!(pTime->fFlags & ~RTTIME_FLAGS_MASK), ("%#x\n", pTime->fFlags), NULL); 700 700 AssertMsgReturn((pTime->fFlags & RTTIME_FLAGS_TYPE_MASK) != RTTIME_FLAGS_TYPE_LOCAL, ("Use RTTimeLocalNormalize!\n"), NULL); … … 736 736 * Validate that we've got the minimum of stuff handy. 737 737 */ 738 Assert Return(VALID_PTR(pTime), NULL);738 AssertPtrReturn(pTime, NULL); 739 739 AssertMsgReturn(!(pTime->fFlags & ~RTTIME_FLAGS_MASK), ("%#x\n", pTime->fFlags), NULL); 740 740 AssertMsgReturn((pTime->fFlags & RTTIME_FLAGS_TYPE_MASK) != RTTIME_FLAGS_TYPE_UTC, ("Use RTTimeNormalize!\n"), NULL); … … 1554 1554 * Validate that we've got the minimum of stuff handy. 1555 1555 */ 1556 Assert Return(VALID_PTR(pTime), NULL);1556 AssertPtrReturn(pTime, NULL); 1557 1557 AssertMsgReturn(!(pTime->fFlags & ~RTTIME_FLAGS_MASK), ("%#x\n", pTime->fFlags), NULL); 1558 1558
Note:
See TracChangeset
for help on using the changeset viewer.