Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2d2f20

Browse files
committed
Bring most commonly used classes to default namespace
1 parent e481f1f commit e2d2f20

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

‎api/IPAddress.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,5 @@ class IPAddress : public Printable {
8383

8484
extern const IPAddress INADDR_NONE;
8585
}
86+
87+
using arduino::IPAddress;

‎api/Stream.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,6 @@ class Stream : public Print
128128

129129
#undef NO_IGNORE_CHAR
130130

131-
}
131+
}
132+
133+
using arduino::Stream;

‎api/Udp.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ class UDP : public Stream {
8787
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
8888
};
8989

90-
}
90+
}
91+
92+
using arduino::UDP;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /