Last change
on this file since 29772 was 28800, checked in by vboxsync, 15 years ago |
Automated rebranding to Oracle copyright/license strings via filemuncher
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | /***************************************************************************\
|
---|
2 | *
|
---|
3 | * Copyright (C) 2006-2007 Oracle Corporation
|
---|
4 | *
|
---|
5 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
6 | * available from http://www.virtualbox.org. This file is free software;
|
---|
7 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
8 | * General Public License (GPL) as published by the Free Software
|
---|
9 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
10 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
11 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
12 | */
|
---|
13 | /*
|
---|
14 | * Based in part on Microsoft DDK sample code
|
---|
15 | *
|
---|
16 | * *******************
|
---|
17 | * * GDI SAMPLE CODE *
|
---|
18 | * *******************
|
---|
19 | *
|
---|
20 | * Module Name: debug.h
|
---|
21 | *
|
---|
22 | * Commonly used debugging macros.
|
---|
23 | *
|
---|
24 | * Copyright (c) 1992-1998 Microsoft Corporation
|
---|
25 | \***************************************************************************/
|
---|
26 |
|
---|
27 | //VBOX
|
---|
28 | #ifdef LOG_ENABLED
|
---|
29 | VOID
|
---|
30 | DebugPrint(
|
---|
31 | ULONG DebugPrintLevel,
|
---|
32 | PCHAR DebugMessage,
|
---|
33 | ...
|
---|
34 | );
|
---|
35 |
|
---|
36 | #define DISPDBG(arg) DebugPrint arg
|
---|
37 | #define VHWADBG(arg)
|
---|
38 | #define RIP(x) { DebugPrint(0, x); }
|
---|
39 | #else
|
---|
40 | #define DISPDBG(arg)
|
---|
41 | #define VHWADBG(arg)
|
---|
42 | #define RIP(x)
|
---|
43 | #endif
|
---|
44 |
|
---|
45 | // #if DBG
|
---|
46 | //
|
---|
47 | // VOID
|
---|
48 | // DebugPrint(
|
---|
49 | // ULONG DebugPrintLevel,
|
---|
50 | // PCHAR DebugMessage,
|
---|
51 | // ...
|
---|
52 | // );
|
---|
53 | //
|
---|
54 | // #define DISPDBG(arg) DebugPrint arg
|
---|
55 | // #define RIP(x) { DebugPrint(0, x); EngDebugBreak();}
|
---|
56 | //
|
---|
57 | // #else
|
---|
58 | //
|
---|
59 | // #define DISPDBG(arg)
|
---|
60 | // #define RIP(x)
|
---|
61 | //
|
---|
62 | // #endif
|
---|
63 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.