File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include " AppleMIDI_Namespace.h"
4
+ BEGIN_APPLEMIDI_NAMESPACE
5
+
1
6
#ifdef APPLEMIDI_DEBUG
2
7
namespace {
3
- static void DBG_SETUP (unsigned long baud) {
8
+ static void AM_DBG_SETUP (unsigned long baud) {
4
9
APPLEMIDI_DEBUG.begin (baud);
5
10
while (!APPLEMIDI_DEBUG);
6
11
}
7
12
8
13
template <typename T>
9
- static void DBG_PLAIN (T last) {
14
+ static void AM_DBG_PLAIN (T last) {
10
15
APPLEMIDI_DEBUG.println (last);
11
16
}
12
17
13
18
template <typename T, typename ... Args>
14
- static void DBG_PLAIN (T head, Args... tail) {
19
+ static void AM_DBG_PLAIN (T head, Args... tail) {
15
20
APPLEMIDI_DEBUG.print (head);
16
21
APPLEMIDI_DEBUG.print (' ' );
17
- DBG_PLAIN (tail...);
22
+ AM_DBG_PLAIN (tail...);
18
23
}
19
24
20
25
template <typename ... Args>
21
- static void DBG (Args... args) {
22
- DBG_PLAIN (args...);
26
+ static void AM_DBG (Args... args) {
27
+ AM_DBG_PLAIN (args...);
23
28
}
24
29
} // namespace
25
30
#else
26
- #define DBG_SETUP (...)
27
- #define DBG_PLAIN (...)
28
- #define DBG (...)
29
- #endif
31
+ #define AM_DBG_SETUP (...)
32
+ #define AM_DBG_PLAIN (...)
33
+ #define AM_DBG (...)
34
+ #endif
35
+
36
+ END_APPLEMIDI_NAMESPACE
You can’t perform that action at this time.
0 commit comments