Skip to content

Commit 6cf5217

Browse files
committed
Add defines to indicate ARDUINO_CI builds
1 parent 6f326f8 commit 6cf5217

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99
### Added
10+
- C++ definitions of `ARDUINO_CI_COMPILATION_MOCKS` and `ARDUINO_CI_GODMODE` to aid in compilation macros
1011

1112
### Changed
1213

cpp/arduino/Arduino.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Mock Arduino.h library.
55
Where possible, variable names from the Arduino library are used to avoid conflicts
66
77
*/
8+
9+
// signal to the developer that we are in an arduino_ci mocked environment
10+
#define ARDUINO_CI_COMPILATION_MOCKS
11+
12+
813
// Chars and strings
914

1015
#include "ArduinoDefines.h"

cpp/arduino/Godmode.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#include "WString.h"
77
#include "PinHistory.h"
88

9+
// signal to the developer that we are in an arduino_ci mocked environment
10+
#define ARDUINO_CI_GODMODE
11+
912
// random
1013
void randomSeed(unsigned long seed);
1114
long random(long vmax);

0 commit comments

Comments
 (0)