Skip to content

Commit b233ee4

Browse files
committed
Rename _macroToString to ARDUINO_THREADS_TO_STRING in order to avoid name collissions with different libraries.
1 parent e96894c commit b233ee4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/Arduino_Threads.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ public: \
8282
#define ARDUINO_THREADS_CONCAT_(x,y) x##y
8383
#define ARDUINO_THREADS_CONCAT(x,y) ARDUINO_THREADS_CONCAT_(x,y)
8484

85+
#define ARDUINO_THREADS_TO_STRING(sequence) #sequence
86+
8587
/**************************************************************************************
8688
* CLASS DECLARATION
8789
**************************************************************************************/
8890

89-
#define _macroToString(sequence) #sequence
90-
9191
class Arduino_Threads
9292
{
9393
public:
@@ -123,7 +123,7 @@ class Arduino_Threads
123123

124124
#define THD_ENTER(tabname) class ARDUINO_THREADS_CONCAT(tabname, Class) : public Arduino_Threads { \
125125
public: \
126-
ARDUINO_THREADS_CONCAT(tabname, Class)() { _tabname = _macroToString(tabname); } \
126+
ARDUINO_THREADS_CONCAT(tabname, Class)() { _tabname = ARDUINO_THREADS_TO_STRING(tabname); } \
127127
private: \
128128

129129
#define THD_DONE(tabname) \

0 commit comments

Comments
 (0)