/*************************************************************************\ * Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * EPICS BASE is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. \*************************************************************************/ /* * Author: * Jeffrey O. Hill * johill@lanl.gov */ #ifndef compilerDependencies_h #define compilerDependencies_h #include "compilerSpecific.h" #ifdef __cplusplus /* * usage: void func () epicsThrows (( std::bad_alloc, std::logic_error )) * * Note: now a widely accepted concensus (ref Meyers and C++ faq) is that * one should avoid using throw specifications in C++ code */ #if defined ( CXX_THROW_SPECIFICATION ) # define epicsThrows(X) throw X #else # define epicsThrows(X) #endif /* * usage: epicsPlacementDeleteOperator (( void *, myMemoryManager & )) */ #if defined ( CXX_PLACEMENT_DELETE ) # define epicsPlacementDeleteOperator(X) void operator delete X; #else # define epicsPlacementDeleteOperator(X) #endif #endif /* __cplusplus */ #ifndef EPICS_PRINTF_STYLE /* * No format-string checking */ # define EPICS_PRINTF_STYLE(f,a) #endif #ifndef EPICS_DEPRECATED /* * No deprecation markers */ #define EPICS_DEPRECATED #endif #ifndef EPICS_UNUSED # define EPICS_UNUSED #endif #ifndef EPICS_FUNCTION #if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) || (defined(__cplusplus) && __cplusplus>=201103L) # define EPICS_FUNCTION __func__ #else /* Expands to a 'const char*' which describes the name of the current function scope */ # define EPICS_FUNCTION ("") #endif #endif #endif /* ifndef compilerDependencies_h */