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
3#define USE_CS_NAMESPACE
4#define CS_NAMESPACE_NAME cs
5
6// ========================================================================== //
7
8#ifdef USE_CS_NAMESPACE
9#define BEGIN_CS_NAMESPACE namespace CS_NAMESPACE_NAME {
10#define END_CS_NAMESPACE }
11#define USING_CS_NAMESPACE using namespace CS_NAMESPACE_NAME
12#else
13#define BEGIN_CS_NAMESPACE
14#define END_CS_NAMESPACE
15#define USING_CS_NAMESPACE
16#endif
17
18#if __cplusplus >= 201402L && \
19 (!defined(__GNUC__) || __GNUC__ > 6 || defined(__clang__))
20#define CS_DEPREC(msg) [[deprecated(msg)]]
21#elif (defined(__GNUC__) && __GNUC__ > 6) || defined(__clang__)
22#define CS_DEPREC(msg) __attribute__((deprecated(msg)))
23#else
24#define CS_DEPREC(...)
25#endif