Skip to content

Commit 1761fb0

Browse files
committed
since Queue is a common data structure, put it in a special dir from arduino mocks to avoid conflicts
1 parent 8f43672 commit 1761fb0

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

SampleProjects/TestSomething/test/queue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <ArduinoUnitTests.h>
2-
#include <Queue.h>
2+
#include <ci/Queue.h>
33

44
unittest(basic_queue_dequeue_and_size)
55
{

cpp/arduino/PinHistory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include "Queue.h"
2+
#include "ci/Queue.h"
33
#include "WString.h"
44

55
// pins with history.
File renamed without changes.

cpp/arduino/ci/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The parent directory is for files that must stand in for their Arduino counterparts -- any `SomeFile` that might be requested as `#include <SomeFile.h>`.
2+
3+
This directory is specificially for support files required by those other files. That's because we don't want to create collisions on filenames for common data structures like Queue.
4+
5+
If there end up being class-level conflicts, it is this developer's stated intention to rename our classes such that `class Float` becomes `class FloatyMcFloatFace`.

0 commit comments

Comments
 (0)