mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: use functor macros
Functor is not yet being used but let's make is macro fallback to the previous Delegate implementation for easy of transition between the two.
This commit is contained in:
parent
7c4cf41ebc
commit
20ef7efaf6
|
@ -99,7 +99,7 @@ namespace AP_HAL {
|
|||
which allows us to encapculate a member function as a type
|
||||
*/
|
||||
typedef void(*Proc)(void);
|
||||
typedef DELEGATE_FUNCTION0(void) MemberProc;
|
||||
FUNCTOR_TYPEDEF(MemberProc, void);
|
||||
|
||||
/**
|
||||
* Global names for all of the existing SPI devices on all platforms.
|
||||
|
|
Loading…
Reference in New Issue