Changeset 39570 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/include
- Timestamp:
- Dec 9, 2011 2:02:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/debug.h
r38982 r39570 41 41 #endif 42 42 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() 51 49 #endif 52 50 … … 60 58 61 59 struct _GUID; 60 61 #ifdef DEBUG 62 # define VBOX_WINE_DEBUG 63 #endif 64 65 #ifdef VBOX_WINE_DEBUG 66 # ifndef VBOX_WINE_DEBUG_DEFINES 67 extern 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 74 DWORD 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 */ 62 92 63 93 /*
Note:
See TracChangeset
for help on using the changeset viewer.