Skip to content

Commit a1f8e3e

Browse files
committed
[CI] import c++11 F replacement
1 parent c5bed55 commit a1f8e3e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

extras/test/include/Arduino.h

+13
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@
3838
typedef arduino::String String;
3939
typedef bool boolean;
4040

41+
#if defined(__cplusplus)
42+
43+
#undef F
44+
// C++11 F replacement declaration
45+
template <typename T1>
46+
auto F(T1&& A)
47+
-> const arduino::__FlashStringHelper*
48+
{
49+
return (const arduino::__FlashStringHelper*)A;
50+
}
51+
52+
#endif
53+
4154
/******************************************************************************
4255
FUNCTION PROTOTYPES
4356
******************************************************************************/

0 commit comments

Comments
 (0)