VirtualBox

Ignore:
Timestamp:
Dec 9, 2011 2:02:53 PM (13 years ago)
Author:
vboxsync
Message:

wine: IDirect3D9Impl_QueryInterface fix, getd3dcaps9 fix, debug tooling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/debug.h

    r38982 r39570  
    4141#endif
    4242
    43 #ifdef VBOX_WITH_WDDM
    44 # ifdef VBOX_WINE_WITH_IPRT
    45 #  include <iprt/assert.h>
    46 # else
    47 #  define AssertBreakpoint() do { } while (0)
    48 #  define Assert(_expr) do { } while (0)
    49 #  define RT_BREAKPOINT()
    50 # endif
     43#ifdef VBOX_WINE_WITH_IPRT
     44# include <iprt/assert.h>
     45#else
     46# define AssertBreakpoint() do { } while (0)
     47# define Assert(_expr) do { } while (0)
     48# define RT_BREAKPOINT()
    5149#endif
    5250
     
    6058
    6159struct _GUID;
     60
     61#ifdef DEBUG
     62# define VBOX_WINE_DEBUG
     63#endif
     64
     65#ifdef VBOX_WINE_DEBUG
     66# ifndef VBOX_WINE_DEBUG_DEFINES
     67extern DWORD g_VBoxVDbgBreakOnD3DErr;
     68# else
     69#  ifdef DEBUG_misha
     70#   define _ERR_BREAK_DEFAULT 1
     71#  else
     72#   define _ERR_BREAK_DEFAULT 0
     73#  endif
     74DWORD g_VBoxVDbgBreakOnD3DErr = _ERR_BREAK_DEFAULT;
     75# endif
     76
     77# define _ERR_BREAK() Assert(0)
     78# define _ERR_ASSERT(_e) Assert((_e))
     79# define _ERR_CHECK_BREAK(_t) do { \
     80        if (g_VBoxVDbgBreakOn##_t) { _ERR_BREAK(); } \
     81    } while (0)
     82# define _ERR_CHECK_ASSERT(_t, _e) do { \
     83        if (g_VBoxVDbgBreakOn##_t) { _ERR_ASSERT(_e); } \
     84    } while (0)
     85
     86# define ERR_D3D() _ERR_CHECK_BREAK(D3DErr)
     87# define ASSERT_D3D(_e) _ERR_CHECK_ASSERT(D3DErr, _e)
     88#else
     89# define ERR_D3D() do {} while (0)
     90# define ASSERT_D3D(_e) do {} while (0)
     91#endif /* #ifdef VBOX_WINE_DEBUG */
    6292
    6393/*
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