We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bfd800 commit 63553a8Copy full SHA for 63553a8
examples/Demo_Shared_Counter/SharedVariables.h
@@ -1 +1 @@
1
-Shared<int> counter;
+SHARED(counter, int);
src/Arduino_Threads.h
@@ -53,6 +53,9 @@ public: \
53
// This is called "C++11 uniform init" (using "{}" instead of "()" without "="... yikes!)
54
// https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++-dos-and-donts.md
55
56
+#define SHARED(name, type) \
57
+ Shared<type> name;
58
+
59
/**************************************************************************************
60
* CLASS DECLARATION
61
**************************************************************************************/
0 commit comments