VirtualBox

Changeset 64650 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 11, 2016 2:55:07 PM (8 years ago)
Author:
vboxsync
Message:

bugref:8614: Additions/common/VBoxVideo: make the code more self-contained: my last attempt at removing all assertions from debug versions of the Linux video driver was not correct: I missed some places, and forgot that LINUX_VERSION_CODE is only defined when Linux headers are included. Hopefully fix that.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HGSMI/HGSMIMemAlloc.h

    r62476 r64650  
    9292{
    9393    HGSMIOFFSET order = HGSMIPopCnt32(cb - 1) - HGSMI_MA_DESC_ORDER_BASE;
     94#ifdef HGSMI_STRICT
    9495    Assert(HGSMIMAOrder2Size(order) == cb);
     96#endif
    9597    return order;
    9698}
  • trunk/include/VBox/VBoxVideoGuest.h

    r64185 r64650  
    5252 typedef HGSMIHEAP HGSMIGUESTCMDHEAP;
    5353# define HGSMIGUESTCMDHEAP_GET(_p) (_p)
     54#endif
     55
     56#if defined(IN_RING0) && defined(RT_OS_LINUX)
     57# define VBVOAssert(a) do {} while(0)
     58# define VBVOAssertPtr(a) do {} while(0)
     59# define VBVOAssertReturnVoid(a) if (!(a)) return
     60# define VBVOAssertRC(a) do {} while(0)
     61# define VBVOAssertPtrNullReturnVoid(a) do {} while(0)
     62# define VBVOAssertPtrReturnVoid(a) if (!(a)) return
     63#else
     64# define VBVOAssert Assert
     65# define VBVOAssertPtr AssertPtr
     66# define VBVOAssertReturnVoid AssertReturnVoid
     67# define VBVOAssertRC AssertRC
     68# define VBVOAssertPtrNullReturnVoid AssertPtrNullReturnVoid
     69# define VBVOAssertPtrReturnVoid AssertPtrReturnVoid
    5470#endif
    5571
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette