PortableInterceptor.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    PortableInterceptor.h
00006  *
00007  *  PortableInterceptor.h,v 1.12 2006/03/10 07:19:06 jtc Exp
00008  *
00009  *   A series of TAO_INTERCEPTOR* macros are defined in this file.
00010  *   These macros allows us to disable/enable support of interceptors
00011  *   easily.
00012  *
00013  *  @author  Nanbor Wang <nanbor@cs.wustl.edu>
00014  *  @author  Kirthika Parameswaran  <kirthika@cs.wustl.edu>
00015  *  @author  Ossama Othman <ossama@uci.edu>
00016  */
00017 //=============================================================================
00018 
00019 
00020 #ifndef TAO_PORTABLE_INTERCEPTOR_H
00021 #define TAO_PORTABLE_INTERCEPTOR_H
00022 
00023 #include /**/ "ace/pre.h"
00024 
00025 #include "tao/orbconf.h"
00026 
00027 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00028 # pragma once
00029 #endif /* ACE_LACKS_PRAGMA_ONCE */
00030 
00031 #if (TAO_HAS_INTERCEPTORS == 1)
00032 # define TAO_INTERCEPTOR(X) X
00033 # define TAO_INTERCEPTOR_CHECK ACE_TRY_CHECK
00034 # define TAO_INTERCEPTOR_CHECK_RETURN(X) ACE_TRY_CHECK
00035 # define TAO_INTERCEPTOR_THROW(X) ACE_TRY_THROW(X)
00036 # define TAO_INTERCEPTOR_THROW_RETURN(X,Y) ACE_TRY_THROW(X)
00037 #else
00038 # define TAO_INTERCEPTOR(X)
00039 # define TAO_INTERCEPTOR_CHECK ACE_CHECK
00040 # define TAO_INTERCEPTOR_CHECK_RETURN(X) ACE_CHECK_RETURN (X)
00041 # define TAO_INTERCEPTOR_THROW(X) ACE_THROW(X)
00042 # define TAO_INTERCEPTOR_THROW_RETURN(X,Y) ACE_THROW_RETURN(X,Y)
00043 #endif /* TAO_HAS_INTERCEPTORS */
00044 
00045 #include /**/ "ace/post.h"
00046 
00047 #endif /* TAO_PORTABLE_INTERCEPTOR_H */

Generated on Thu Nov 9 11:54:20 2006 for TAO by doxygen 1.3.6