FastLED 3.9.3
Loading...
Searching...
No Matches
namespace.h
1#pragma once
2
3#if defined(FASTLED_FORCE_NAMESPACE) && !defined(FASTLED_IS_USING_NAMESPACE) && !defined(FASTLED_NAMESPACE)
4#define FASTLED_NAMESPACE fl
5#define FASTLED_IS_USING_NAMESPACE 1
6#endif
7
8#ifndef FASTLED_NAMESPACE
9#define FASTLED_IS_USING_NAMESPACE 0
11#define FASTLED_NAMESPACE_BEGIN
13#define FASTLED_NAMESPACE_END
15#define FASTLED_USING_NAMESPACE
16#else
17#define FASTLED_IS_USING_NAMESPACE 1
18#define FASTLED_NAMESPACE_BEGIN namespace FASTLED_NAMESPACE {
19#define FASTLED_NAMESPACE_END }
20
21// We need to create an empty instance of the namespace before we can
22// declare that we are using it.
23FASTLED_NAMESPACE_BEGIN
24FASTLED_NAMESPACE_END
25
26#define FASTLED_USING_NAMESPACE using namespace FASTLED_NAMESPACE;
27#endif
28