libcdos-fw
CFDefines.h
1 #ifndef __CFDEFINES_H__
2 #define __CFDEFINES_H__
3 
4 #ifdef __cplusplus
5 
6 #define CF_BEGIN_DECLS_C extern "C" {
7 #define CF_END_DECLS_C }
8 
9 #else
10 
11 #define CF_BEGIN_DECLS_C
12 #define CF_END_DECLS_C
13 
14 #endif
15 
16 #define CF_NAMESPACE_BEGIN namespace Cdos {
17 #define CF_NAMESPACE_END }
18 
19 #define CF_EXPORT __attribute__ ((__visibility__("default")))
20 
21 #define CF_DECL_CONSTEXPR constexpr
22 
23 #define CF_DISABLE_COPY(Class) \
24  Class(); \
25  Class(const Class &); \
26  Class &operator=(const Class &);
27 
28 #endif // __CFDEFINES_H__