summaryrefslogtreecommitdiff
path: root/modules/CIAO/tests/CIDL/CodeGen/CodeGen_stub_export.h
blob: 35dec897a4f2028fa007caa42c9e197ea680622c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// -*- C++ -*-
//
// $Id$

// ****  Code generated by the The ACE ORB (TAO) IDL Compiler v1.6.9 ****
// TAO and the TAO IDL Compiler have been developed by:
//       Center for Distributed Object Computing
//       Washington University
//       St. Louis, MO
//       USA
//       http://www.cs.wustl.edu/~schmidt/doc-center.html
// and
//       Distributed Object Computing Laboratory
//       University of California at Irvine
//       Irvine, CA
//       USA
//       http://doc.ece.uci.edu/
// and
//       Institute for Software Integrated Systems
//       Vanderbilt University
//       Nashville, TN
//       USA
//       http://www.isis.vanderbilt.edu/
//
// Information about TAO is available at:
//     http://www.cs.wustl.edu/~schmidt/TAO.html

#ifndef CODEGEN_STUB_EXPORT_H
#define CODEGEN_STUB_EXPORT_H

#include "ace/config-all.h"

#if defined (ACE_AS_STATIC_LIBS) && !defined (CODEGEN_STUB_HAS_DLL)
#  define CODEGEN_STUB_HAS_DLL 0
#endif /* ACE_AS_STATIC_LIBS && CODEGEN_STUB_HAS_DLL */

#if !defined (CODEGEN_STUB_HAS_DLL)
#  define CODEGEN_STUB_HAS_DLL 1
#endif /* ! CODEGEN_STUB_HAS_DLL */

#if defined (CODEGEN_STUB_HAS_DLL) && (CODEGEN_STUB_HAS_DLL == 1)
#  if defined (CODEGEN_STUB_BUILD_DLL)
#    define CODEGEN_STUB_Export ACE_Proper_Export_Flag
#    define CODEGEN_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
#    define CODEGEN_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
#  else /* CODEGEN_STUB_BUILD_DLL */
#    define CODEGEN_STUB_Export ACE_Proper_Import_Flag
#    define CODEGEN_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
#    define CODEGEN_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
#  endif /* CODEGEN_STUB_BUILD_DLL */
#else /* CODEGEN_STUB_HAS_DLL == 1 */
#  define CODEGEN_STUB_Export
#  define CODEGEN_STUB_SINGLETON_DECLARATION(T)
#  define CODEGEN_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
#endif /* CODEGEN_STUB_HAS_DLL == 1 */

// Set CODEGEN_STUB_NTRACE = 0 to turn on library-specific
// tracing even if tracing is turned off for ACE.
#if !defined (CODEGEN_STUB_NTRACE)
#  if (ACE_NTRACE == 1)
#    define CODEGEN_STUB_NTRACE 1
#  else /* (ACE_NTRACE == 1) */
#    define CODEGEN_STUB_NTRACE 0
#  endif /* (ACE_NTRACE == 1) */
#endif /* !CODEGEN_STUB_NTRACE */

#if (CODEGEN_STUB_NTRACE == 1)
#  define CODEGEN_STUB_TRACE(X)
#else /* (CODEGEN_STUB_NTRACE == 1) */
#  if !defined (ACE_HAS_TRACE)
#    define ACE_HAS_TRACE
#  endif /* ACE_HAS_TRACE */
#  define CODEGEN_STUB_TRACE(X) ACE_TRACE_IMPL(X)
#  include "ace/Trace.h"
#endif /* (CODEGEN_STUB_NTRACE == 1) */

#endif /* CODEGEN_STUB_EXPORT_H */