File tree 2 files changed +22
-15
lines changed 2 files changed +22
-15
lines changed Original file line number Diff line number Diff line change
1
+ #ifndef NOTE_DEFINES_H
2
+ #define NOTE_DEFINES_H
3
+
4
+ // Define the version of the `note-arduino` library
5
+ #define NOTE_ARDUINO_VERSION_MAJOR 1
6
+ #define NOTE_ARDUINO_VERSION_MINOR 6
7
+ #define NOTE_ARDUINO_VERSION_PATCH 3
8
+
9
+ #define NOTE_ARDUINO_VERSION NOTE_C_STRINGIZE(NOTE_ARDUINO_VERSION_MAJOR) "." NOTE_C_STRINGIZE(NOTE_ARDUINO_VERSION_MINOR) "." NOTE_C_STRINGIZE(NOTE_ARDUINO_VERSION_PATCH)
10
+
11
+ // Unified attribute for marking functions as deprecated
12
+ #if defined(__GNUC__ ) | defined(__clang__ )
13
+ #define NOTE_ARDUINO_DEPRECATED __attribute__((__deprecated__))
14
+ #elif defined(_MSC_VER )
15
+ #define NOTE_ARDUINO_DEPRECATED __declspec(deprecated)
16
+ #else
17
+ #define NOTE_ARDUINO_DEPRECATED
18
+ #define NOTE_ARDUINO_NO_DEPRECATED_ATTR
19
+ #endif // __GNUC__ || __clang__
20
+
21
+ #endif // NOTE_DEFINES_H
Original file line number Diff line number Diff line change 27
27
#include < stddef.h>
28
28
#include < stdint.h>
29
29
30
+ #include " NoteDefines.h"
30
31
#include " NoteI2c.hpp"
31
32
#include " NoteLog.hpp"
32
33
#include " NoteSerial.hpp"
45
46
#include " mock/mock-parameters.hpp"
46
47
#endif
47
48
48
- #define NOTE_ARDUINO_VERSION_MAJOR 1
49
- #define NOTE_ARDUINO_VERSION_MINOR 6
50
- #define NOTE_ARDUINO_VERSION_PATCH 3
51
-
52
- #define NOTE_ARDUINO_VERSION NOTE_C_STRINGIZE (NOTE_ARDUINO_VERSION_MAJOR) "." NOTE_C_STRINGIZE(NOTE_ARDUINO_VERSION_MINOR) "." NOTE_C_STRINGIZE(NOTE_ARDUINO_VERSION_PATCH)
53
-
54
- #if defined(__GNUC__) | defined(__clang__)
55
- #define NOTE_ARDUINO_DEPRECATED __attribute__ ((__deprecated__))
56
- #elif defined(_MSC_VER)
57
- #define NOTE_ARDUINO_DEPRECATED __declspec (deprecated)
58
- #else
59
- #define NOTE_ARDUINO_DEPRECATED
60
- #define NOTE_ARDUINO_NO_DEPRECATED_ATTR
61
- #endif // __GNUC__ || __clang__
62
-
63
49
/* *************************************************************************/
64
50
/* !
65
51
@brief Class that stores state and functions for interacting with the
You can’t perform that action at this time.
0 commit comments