-
Notifications
You must be signed in to change notification settings - Fork 1
/
cake_Defs.h
38 lines (25 loc) · 1.25 KB
/
cake_Defs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include "cake_Namespace.h"
// -----------------------------------------------------------------------------
#if !defined(__AVR__)
# error This library is supposed to be built for AVR targets.
#endif
// -----------------------------------------------------------------------------
#if defined(DEBUG) || defined(_DEBUG)
# define AVR_DEBUG 1
#elif defined(NDEBUG) || defined(_NDEBUG)
# define AVR_RELEASE 1
#endif
// -----------------------------------------------------------------------------
#define AVR_BEGIN_EXTERN_C extern "C" {
#define AVR_END_EXTERN_C }
#define AVR_BEGIN_UNNAMED_NAMESPACE namespace {
#define AVR_END_UNNAMED_NAMESPACE }
// -----------------------------------------------------------------------------
#define AVR_NON_COPYABLE(Type) \
private: \
Type (const Type&); \
Type& operator= (const Type&);
// -----------------------------------------------------------------------------
#define AVR_TYPEDEF_FUNCTOR(ReturnType, Name, Arg) \
typedef ReturnType (*Name) (Arg);