diff options
Diffstat (limited to 'modules/CIAO/tests/IDL3/Events')
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Abstract/Abstract.idl | 38 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc | 17 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Abstract/Abstract_stub_export.h | 54 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Abstract/Abstract_svnt_export.h | 54 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Any/Any.mpc | 26 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Any/EventAny.idl | 16 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Any/README | 35 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Any/main.cpp | 84 | ||||
-rwxr-xr-x | modules/CIAO/tests/IDL3/Events/Any/run_test.pl | 31 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Regular/Regular.idl | 44 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Regular/Regular.mpc | 20 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Regular/Regular_stub_export.h | 54 | ||||
-rw-r--r-- | modules/CIAO/tests/IDL3/Events/Regular/Regular_svnt_export.h | 54 |
13 files changed, 527 insertions, 0 deletions
diff --git a/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.idl b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.idl new file mode 100644 index 00000000000..15eb50971b3 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.idl @@ -0,0 +1,38 @@ +// $Id$ +/** + * @file Abstract.idl + * @author Will Otte <wotte@dre.vanderbilt.edu> + * + * Tests the compilation of abstract events. + */ + +#include <Components.idl> + +module AbstractEvents +{ + abstract eventtype foo_event + { + }; + + abstract eventtype InhFoo_event : foo_event + { + }; + + abstract eventtype bar_event + { + }; + + abstract eventtype foobar_event : foo_event, bar_event + { + }; + + // test event multiple inheretance + + eventtype concrete_foo + { + }; + + eventtype concrete_foobar : concrete_foo, foo_event + { + }; +}; diff --git a/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc new file mode 100644 index 00000000000..e1a4a36cc54 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc @@ -0,0 +1,17 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Abstract" + +project(Abstract_stub): ciao_client_dnc { + + sharedname = Abstract_stub + idlflags += -Wb,stub_export_macro=ABSTRACT_STUB_Export -Wb,stub_export_include=Abstract_stub_export.h -Wb,skel_export_macro=ABSTRACT_SVNT_Export -Wb,skel_export_include=Abstract_svnt_export.h + dynamicflags = ABSTRACT_STUB_BUILD_DLL + + IDL_Files { + Abstract.idl + } + + Source_Files { + AbstractC.cpp + } +} diff --git a/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_stub_export.h b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_stub_export.h new file mode 100644 index 00000000000..43d8e34ee72 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_stub_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl ABSTRACT_STUB +// ------------------------------ +#ifndef ABSTRACT_STUB_EXPORT_H +#define ABSTRACT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (ABSTRACT_STUB_HAS_DLL) +# define ABSTRACT_STUB_HAS_DLL 1 +#endif /* ! ABSTRACT_STUB_HAS_DLL */ + +#if defined (ABSTRACT_STUB_HAS_DLL) && (ABSTRACT_STUB_HAS_DLL == 1) +# if defined (ABSTRACT_STUB_BUILD_DLL) +# define ABSTRACT_STUB_Export ACE_Proper_Export_Flag +# define ABSTRACT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define ABSTRACT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* ABSTRACT_STUB_BUILD_DLL */ +# define ABSTRACT_STUB_Export ACE_Proper_Import_Flag +# define ABSTRACT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define ABSTRACT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* ABSTRACT_STUB_BUILD_DLL */ +#else /* ABSTRACT_STUB_HAS_DLL == 1 */ +# define ABSTRACT_STUB_Export +# define ABSTRACT_STUB_SINGLETON_DECLARATION(T) +# define ABSTRACT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* ABSTRACT_STUB_HAS_DLL == 1 */ + +// Set ABSTRACT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (ABSTRACT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define ABSTRACT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define ABSTRACT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !ABSTRACT_STUB_NTRACE */ + +#if (ABSTRACT_STUB_NTRACE == 1) +# define ABSTRACT_STUB_TRACE(X) +#else /* (ABSTRACT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define ABSTRACT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (ABSTRACT_STUB_NTRACE == 1) */ + +#endif /* ABSTRACT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_svnt_export.h b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_svnt_export.h new file mode 100644 index 00000000000..53b5032df69 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_svnt_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl ABSTRACT_SVNT +// ------------------------------ +#ifndef ABSTRACT_SVNT_EXPORT_H +#define ABSTRACT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (ABSTRACT_SVNT_HAS_DLL) +# define ABSTRACT_SVNT_HAS_DLL 1 +#endif /* ! ABSTRACT_SVNT_HAS_DLL */ + +#if defined (ABSTRACT_SVNT_HAS_DLL) && (ABSTRACT_SVNT_HAS_DLL == 1) +# if defined (ABSTRACT_SVNT_BUILD_DLL) +# define ABSTRACT_SVNT_Export ACE_Proper_Export_Flag +# define ABSTRACT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define ABSTRACT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* ABSTRACT_SVNT_BUILD_DLL */ +# define ABSTRACT_SVNT_Export ACE_Proper_Import_Flag +# define ABSTRACT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define ABSTRACT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* ABSTRACT_SVNT_BUILD_DLL */ +#else /* ABSTRACT_SVNT_HAS_DLL == 1 */ +# define ABSTRACT_SVNT_Export +# define ABSTRACT_SVNT_SINGLETON_DECLARATION(T) +# define ABSTRACT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* ABSTRACT_SVNT_HAS_DLL == 1 */ + +// Set ABSTRACT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (ABSTRACT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define ABSTRACT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define ABSTRACT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !ABSTRACT_SVNT_NTRACE */ + +#if (ABSTRACT_SVNT_NTRACE == 1) +# define ABSTRACT_SVNT_TRACE(X) +#else /* (ABSTRACT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define ABSTRACT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (ABSTRACT_SVNT_NTRACE == 1) */ + +#endif /* ABSTRACT_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Events/Any/Any.mpc b/modules/CIAO/tests/IDL3/Events/Any/Any.mpc new file mode 100644 index 00000000000..d0b72182ca1 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Any/Any.mpc @@ -0,0 +1,26 @@ +// $Id$ + +project(EventAny_local): ciao_client_dnc { + exename = EventAny + idlflags += -SS + + IDL_Files { + EventAny.idl + } + + Source_Files { + EventAnyC.cpp + main.cpp + } + + Header_Files { + EventAnyC.h + } + + Inline_Files { + EventAnyC.inl + } + + Template_Files { + } +} diff --git a/modules/CIAO/tests/IDL3/Events/Any/EventAny.idl b/modules/CIAO/tests/IDL3/Events/Any/EventAny.idl new file mode 100644 index 00000000000..d53ddf55c08 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Any/EventAny.idl @@ -0,0 +1,16 @@ +// $Id$ +/** + * @file EventAny.idl + * @author Jeff Parsons <j.parsons@vanderbilt.edu> + * + * Tests Any insertion/extraction of event types, + * and (de)marshaling of such Anys. + */ + +#include <Components.idl> + +eventtype StringMsg +{ + public string str_msg; +}; + diff --git a/modules/CIAO/tests/IDL3/Events/Any/README b/modules/CIAO/tests/IDL3/Events/Any/README new file mode 100644 index 00000000000..7bf91be5776 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Any/README @@ -0,0 +1,35 @@ + +Event Any Test +======================= + +This test defines, instantiates, and initializes an IDL +eventtype with a public string member, inserts it into +an Any, marshals the Any, demarshals the Any, extracts +the eventtype, and compares the resulting member string +with the original. The purpose of the test is to ensure +that (1) the demarshaling of the Any and (2) the +extraction of the eventtype, are successful, since both +these actions are done interpretively by traversing the +eventtype's type code. The motivation for the test was +the failure of these actions due to missing cases in +the interpretive demarshaling code corresponding to +the kind of the eventtype's type code (CORBA::tk_event). + +There are several places the test can fail: + +- marshaling of the Any +- demarshaling of the Any +- extraction from the Any +- string compare of the sent and received eventtype members + +Note that the test code registers a valuetype factory +with the orb, a necessary step in extracting the +eventtype from the Any. In a real-world use case (such +as an event channel) such a factory would have to +be registered with the orb anywhere the eventtype is +to be demarshaled from a CDR stream or extracted from +an Any that was itself demarshaled. + +Jeff Parsons + + diff --git a/modules/CIAO/tests/IDL3/Events/Any/main.cpp b/modules/CIAO/tests/IDL3/Events/Any/main.cpp new file mode 100644 index 00000000000..77551725735 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Any/main.cpp @@ -0,0 +1,84 @@ +// $Id$ + +#include "EventAnyC.h" +#include "ace/Get_Opt.h" + +void +insert_into_any (CORBA::Any& any, Components::EventBase* vb) +{ + any <<= vb; +} + +void +debug_msg (const char *msg) +{ + ACE_ERROR ((LM_ERROR, "Error: %s\n", msg)); +} + +int +main (int argc, char *argv[]) +{ + try + { + CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, ""); + StringMsg_init *StringMsg_factory = new StringMsg_init; + + orb->register_value_factory (StringMsg_factory->tao_repository_id (), + StringMsg_factory); + StringMsg_factory->_remove_ref (); // release ownership + + const char *test_str = "a message"; + + StringMsg_var ev = new OBV_StringMsg; + ev->str_msg (test_str); + + CORBA::Any in_any; + insert_into_any (in_any, ev.in ()); + + TAO_OutputCDR out; + CORBA::Boolean good = out << in_any; + + if (!good) + { + debug_msg ("Any marshaling failed"); + return -1; + } + + TAO_InputCDR in (out); + CORBA::Any out_any; + good = in >> out_any; + + if (!good) + { + debug_msg ("Any demarshaling failed"); + return -1; + } + + StringMsg *ev_out = 0; + good = out_any >>= ev_out; + + if (!good) + { + debug_msg ("Any extraction failed"); + return -1; + } + + const char *result_str = ev_out->str_msg (); + + if (result_str == 0 || ACE_OS::strcmp (result_str, test_str) != 0) + { + debug_msg ("Extracted member string null or incorrect"); + return -1; + } + + orb->destroy (); + } + catch (const CORBA::Exception& ex) + { + ex._tao_print_exception ("caught exception:"); + return 1; + } + + return 0; +} + diff --git a/modules/CIAO/tests/IDL3/Events/Any/run_test.pl b/modules/CIAO/tests/IDL3/Events/Any/run_test.pl new file mode 100755 index 00000000000..f13f9726b5b --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Any/run_test.pl @@ -0,0 +1,31 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +# The first three lines above let this script run without specifying the +# full path to perl, as long as it is in the user's PATH. +# Taken from perlrun man page. + +# Do not use environment variables here since not all platforms use ACE_ROOT +use lib "$ENV{ACE_ROOT}/bin"; +use PerlACE::Run_Test; +use English; + +$status = 0; +$exflags = ""; + +# Run the test + +$EX = new PerlACE::Process ("EventAny"); +$EX->Arguments ($exflags); +$test = $EX->SpawnWaitKill (10); + +if ($test != 0) { + print STDERR "ERROR: test error status $test\n"; + $status = 1; +} + +exit $status; diff --git a/modules/CIAO/tests/IDL3/Events/Regular/Regular.idl b/modules/CIAO/tests/IDL3/Events/Regular/Regular.idl new file mode 100644 index 00000000000..f9169026e88 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Regular/Regular.idl @@ -0,0 +1,44 @@ +// $Id$ +/** + * @file Regular.idl + * @author Will Otte <wotte@dre.vanderbilt.edu> + * + * Tests the compilation of regular event types. + */ + +#include <Components.idl> + +module RegularEvents +{ + eventtype foo + { + }; + + eventtype bar + { + }; + + eventtype InhFoo : foo + { + }; + + /* @@ + * TAO_IDL cannot handle custom yet. + custom eventtype custom_foo + { + }; + + custom eventtype custom_InhFoo : foo + { + }; + */ + + eventtype Baz + { + long test_op (); + void test_op_a (in long foo, out float bar); + InhFoo test_op_b (); + }; + + +}; diff --git a/modules/CIAO/tests/IDL3/Events/Regular/Regular.mpc b/modules/CIAO/tests/IDL3/Events/Regular/Regular.mpc new file mode 100644 index 00000000000..1ff6519f0ca --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Regular/Regular.mpc @@ -0,0 +1,20 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Regular" + +project(Regular_stub): ciao_client_dnc { + + sharedname = Regular_stub + idlflags += -Wb,stub_export_macro=REGULAR_STUB_Export \ + -Wb,stub_export_include=Regular_stub_export.h \ + -Wb,skel_export_macro=REGULAR_SVNT_Export \ + -Wb,skel_export_include=Regular_svnt_export.h + dynamicflags = REGULAR_STUB_BUILD_DLL + + IDL_Files { + Regular.idl + } + + Source_Files { + RegularC.cpp + } +} diff --git a/modules/CIAO/tests/IDL3/Events/Regular/Regular_stub_export.h b/modules/CIAO/tests/IDL3/Events/Regular/Regular_stub_export.h new file mode 100644 index 00000000000..9c8b885ba96 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Regular/Regular_stub_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl REGULAR_STUB +// ------------------------------ +#ifndef REGULAR_STUB_EXPORT_H +#define REGULAR_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (REGULAR_STUB_HAS_DLL) +# define REGULAR_STUB_HAS_DLL 1 +#endif /* ! REGULAR_STUB_HAS_DLL */ + +#if defined (REGULAR_STUB_HAS_DLL) && (REGULAR_STUB_HAS_DLL == 1) +# if defined (REGULAR_STUB_BUILD_DLL) +# define REGULAR_STUB_Export ACE_Proper_Export_Flag +# define REGULAR_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define REGULAR_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* REGULAR_STUB_BUILD_DLL */ +# define REGULAR_STUB_Export ACE_Proper_Import_Flag +# define REGULAR_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define REGULAR_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* REGULAR_STUB_BUILD_DLL */ +#else /* REGULAR_STUB_HAS_DLL == 1 */ +# define REGULAR_STUB_Export +# define REGULAR_STUB_SINGLETON_DECLARATION(T) +# define REGULAR_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* REGULAR_STUB_HAS_DLL == 1 */ + +// Set REGULAR_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (REGULAR_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define REGULAR_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define REGULAR_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !REGULAR_STUB_NTRACE */ + +#if (REGULAR_STUB_NTRACE == 1) +# define REGULAR_STUB_TRACE(X) +#else /* (REGULAR_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define REGULAR_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (REGULAR_STUB_NTRACE == 1) */ + +#endif /* REGULAR_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Events/Regular/Regular_svnt_export.h b/modules/CIAO/tests/IDL3/Events/Regular/Regular_svnt_export.h new file mode 100644 index 00000000000..a8faf5e0b6f --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Regular/Regular_svnt_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl REGULAR_SVNT +// ------------------------------ +#ifndef REGULAR_SVNT_EXPORT_H +#define REGULAR_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (REGULAR_SVNT_HAS_DLL) +# define REGULAR_SVNT_HAS_DLL 1 +#endif /* ! REGULAR_SVNT_HAS_DLL */ + +#if defined (REGULAR_SVNT_HAS_DLL) && (REGULAR_SVNT_HAS_DLL == 1) +# if defined (REGULAR_SVNT_BUILD_DLL) +# define REGULAR_SVNT_Export ACE_Proper_Export_Flag +# define REGULAR_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define REGULAR_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* REGULAR_SVNT_BUILD_DLL */ +# define REGULAR_SVNT_Export ACE_Proper_Import_Flag +# define REGULAR_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define REGULAR_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* REGULAR_SVNT_BUILD_DLL */ +#else /* REGULAR_SVNT_HAS_DLL == 1 */ +# define REGULAR_SVNT_Export +# define REGULAR_SVNT_SINGLETON_DECLARATION(T) +# define REGULAR_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* REGULAR_SVNT_HAS_DLL == 1 */ + +// Set REGULAR_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (REGULAR_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define REGULAR_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define REGULAR_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !REGULAR_SVNT_NTRACE */ + +#if (REGULAR_SVNT_NTRACE == 1) +# define REGULAR_SVNT_TRACE(X) +#else /* (REGULAR_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define REGULAR_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (REGULAR_SVNT_NTRACE == 1) */ + +#endif /* REGULAR_SVNT_EXPORT_H */ + +// End of auto generated file. |