mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-24 19:42:27 +03:00
Migrate from astyle to clang-format (#8464)
This commit is contained in:
committed by
Max Prokhorov
parent
46190b61f1
commit
19b7a29720
@ -5,25 +5,25 @@
|
||||
using namespace experimental::CBListImplentation;
|
||||
|
||||
class exampleClass {
|
||||
public:
|
||||
exampleClass() {};
|
||||
public:
|
||||
exampleClass(){};
|
||||
|
||||
using exCallBack = std::function<void(int)>;
|
||||
using exHandler = CallBackList<exCallBack>::CallBackHandler;
|
||||
using exCallBack = std::function<void(int)>;
|
||||
using exHandler = CallBackList<exCallBack>::CallBackHandler;
|
||||
|
||||
CallBackList<exCallBack> myHandlers;
|
||||
CallBackList<exCallBack> myHandlers;
|
||||
|
||||
exHandler setHandler(exCallBack cb) {
|
||||
return myHandlers.add(cb);
|
||||
}
|
||||
exHandler setHandler(exCallBack cb) {
|
||||
return myHandlers.add(cb);
|
||||
}
|
||||
|
||||
void removeHandler(exHandler hnd) {
|
||||
myHandlers.remove(hnd);
|
||||
}
|
||||
void removeHandler(exHandler hnd) {
|
||||
myHandlers.remove(hnd);
|
||||
}
|
||||
|
||||
void trigger(int t) {
|
||||
myHandlers.execute(t);
|
||||
}
|
||||
void trigger(int t) {
|
||||
myHandlers.execute(t);
|
||||
}
|
||||
};
|
||||
|
||||
exampleClass myExample;
|
||||
@ -60,5 +60,4 @@ void setup() {
|
||||
});
|
||||
}
|
||||
|
||||
void loop() {
|
||||
}
|
||||
void loop() {}
|
||||
|
Reference in New Issue
Block a user