Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Settings/NamespaceSettings.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#define USE_CS_NAMESPACE
6#define CS_NAMESPACE_NAME cs
7
8// ========================================================================== //
9
10#ifdef USE_CS_NAMESPACE
11#define BEGIN_CS_NAMESPACE \
12 AH_DIAGNOSTIC_WERROR() \
13 namespace CS_NAMESPACE_NAME {
14#define END_CS_NAMESPACE \
15 } \
16 AH_DIAGNOSTIC_POP()
17#define USING_CS_NAMESPACE using namespace CS_NAMESPACE_NAME
18#else
19#define BEGIN_CS_NAMESPACE
20#define END_CS_NAMESPACE
21#define USING_CS_NAMESPACE
22#endif
23
24#if __cplusplus >= 201402L && \
25 (!defined(__GNUC__) || __GNUC__ > 6 || defined(__clang__))
26#define CS_DEPREC(msg) [[deprecated(msg)]]
27#elif (defined(__GNUC__) && __GNUC__ > 6) || defined(__clang__)
28#define CS_DEPREC(msg) __attribute__((deprecated(msg)))
29#else
30#define CS_DEPREC(...)
31#endif