upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Callback.hpp
1 #pragma once
2 
3 class Callback
4 {
5  public:
6  virtual ~Callback()
7  {
8  }
9  virtual void run()
10  { /* empty, overloaded in Java*/
11  }
12 };
13 
14 
15 void generic_callback (Callback* callback)
16 {
17  if (callback == NULL)
18  return;
19  callback->run();
20 }
Definition: Callback.hpp:3