EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
compilerDependencies.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * SPDX-License-Identifier: EPICS
7 * EPICS BASE is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
18 #ifndef compilerDependencies_h
19 #define compilerDependencies_h
20 
21 #include "compilerSpecific.h"
22 
23 #ifdef __cplusplus
24 
25 /*
26  * usage: epicsPlacementDeleteOperator (( void *, myMemoryManager & ))
27  */
28 #if defined ( CXX_PLACEMENT_DELETE )
29 # define epicsPlacementDeleteOperator(X) void operator delete X;
30 #else
31 # define epicsPlacementDeleteOperator(X)
32 #endif
33 
34 #endif /* __cplusplus */
35 
36 
37 #ifndef EPICS_PRINTF_STYLE
38 /*
39  * No format-string checking
40  */
41 # define EPICS_PRINTF_STYLE(f,a)
42 #endif
43 
44 #ifndef EPICS_DEPRECATED
45 /*
46  * No deprecation markers
47  */
48 #define EPICS_DEPRECATED
49 #endif
50 
51 #ifndef EPICS_UNUSED
52 # define EPICS_UNUSED
53 #endif
54 
55 #ifndef EPICS_FUNCTION
56 #if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) || (defined(__cplusplus) && __cplusplus>=201103L)
57 # define EPICS_FUNCTION __func__
58 #else
59 /* Expands to a 'const char*' which describes the name of the current function scope */
60 # define EPICS_FUNCTION ("<unknown function>")
61 #endif
62 #endif
63 
64 #endif /* ifndef compilerDependencies_h */