InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
K2Debugging.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: ???
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Summary: Debugging functions and macros.
24 // Written by: Jesse Jones (from Whisper)
25 //
26 // Abstract: This file provides the access to assertions and trace messages.
27 // Functions and macros have been moved to K2Assert.h and Trace.h
28 //
29 //========================================================================================
30 
31 #ifndef K2DEBUGGING_H
32 #define K2DEBUGGING_H
33 
34 #include "BaseType.h"
35 
36 #if MACINTOSH
37 // #include <Debugging.h>
38  #undef DEBUGSTR
39  #undef check // Debugging.h defines a "check" macro that conflicts with some methods in boost
40 #endif
41 
42 #include "K2Assert.h"
43 #include "Trace.h"
44 
45 
46 // Synch with ANSI definitions.
47 #if defined(DEBUG) && defined(NDEBUG)
48  #error DEBUG and NDEBUG are out of sync!
49 #endif
50 
51 #if !defined(DEBUG) && !defined(NDEBUG)
52  #error DEBUG and NDEBUG are out of sync! // $$$ need to set NDEBUG in release builds
53 #endif
54 
55 // Synch with MSVC.
56 #if MSVC && defined(DEBUG) != defined(_DEBUG)
57  #error DEBUG and _DEBUG are out of sync!
58 #endif
59 
60 
61 #endif // K2DEBUGGING_H