Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 506255b

Browse files
authored
add cpp defines (#619)
* add cpp defines * fix tslint
1 parent df3777a commit 506255b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/arduino/arduino.ts

+4
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,13 @@ Please make sure the folder is not occupied by other procedures .`);
541541
// Arduino custom libraries
542542
includePath.push(path.join(os.homedir(), "Documents", "Arduino", "libraries", "**"));
543543

544+
const defines = [
545+
"ARDUINO=10800",
546+
];
544547
const cppConfig = {
545548
configurations: [{
546549
name: util.getCppConfigPlatform(),
550+
defines,
547551
includePath,
548552
intelliSenseMode: "clang-x64",
549553
cStandard: "c11",

0 commit comments

Comments
 (0)