InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ShuksanBravoFlags.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Chris Jones
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 // ADOBE CONFIDENTIAL
24 //
25 // Global include file for AGM. Any code within InDesign that needs to access
26 // CoreTech objects should include this rather than including CoreTech headers
27 // directly.
28 //
29 // Notes:
30 //
31 // InDesign#defines BIB_NO_THROW to force CoreTech components not to throw
32 // exceptions in error situations
33 //
34 //========================================================================================
35 
36 #ifndef __ShuksanBravoFlags__
37 #define __ShuksanBravoFlags__
38 
39 
40 // Disable exception throwing by BIB components
41 #if !defined(INDESIGN_BIB_THROW) && !defined(BIB_NO_THROW)
42 #define BIB_NO_THROW
43 #endif
44 
45 // #ifdef WASM
46 //#define INDESIGN_BIB_NS BIB_COMMON
47 
48 //#ifndef BIB_NAMESPACE
49 //#define BIB_NAMESPACE INDESIGN_BIB_NS
50 //#endif
51 
52 // #else
53 
54 
55 // Enable multi-threaded components.
56 #ifndef BIB_MULTI_THREAD
57 #define BIB_MULTI_THREAD
58 #endif
59 
60 
61 
62 // setup the correct namespace name.
63 #ifdef BIB_MULTI_THREAD
64  #ifdef INDESIGN_BIB_THROW
65  #define INDESIGN_BIB_NS BIB_T_MT
66  #else
67  #ifdef SANGAM_TEMPORARY_HACKFEST
68  #define INDESIGN_BIB_NS BIB_NT
69  #else
70  #define INDESIGN_BIB_NS BIB_NT_MT
71  #endif
72 #endif
73 #else
74  #ifdef INDESIGN_BIB_THROW
75  #define INDESIGN_BIB_NS BIB_T_NMT
76  #else
77  #ifdef SANGAM_TEMPORARY_HACKFEST
78  #define INDESIGN_BIB_NS BIB_NT
79  #else
80  #define INDESIGN_BIB_NS BIB_NT_NMT
81  #endif
82 #endif
83 #endif
84 
85 //#endif // WASM
86 
87 // if bib namespaces are off,#define everything to nothing,
88 // otherwise, give it a meaninful definition.
89 #ifdef INDESIGN_DISABLE_BIB_NAMESPACES
90 #undef INDESIGN_BIB_NS
91 #define INDESIGN_BIB_NS
92 #define BEGIN_BIB_NAMESPACE
93 #define END_BIB_NAMESPACE
94 #define USING_BIB_NAMESPACE
95 #error "Using no namespaces"
96 #else
97 #define BEGIN_BIB_NAMESPACE namespace INDESIGN_BIB_NS {
98 #define END_BIB_NAMESPACE }
99 #define USING_BIB_NAMESPACE using namespace INDESIGN_BIB_NS
100 #endif
101 
102 
103 #endif