mirror of https://github.com/ArduPilot/ardupilot
AP_Vehicle: added APM_BUILD_TYPE() macro
this makes checking build type less fragile
This commit is contained in:
parent
e3792f9b26
commit
fbec098e2f
|
@ -58,4 +58,12 @@ public:
|
|||
#define APM_BUILD_ArduPlane 3
|
||||
#define APM_BUILD_AntennaTracker 4
|
||||
|
||||
/*
|
||||
using this macro catches cases where we try to check vehicle type on
|
||||
build systems that don't support it
|
||||
*/
|
||||
#ifdef APM_BUILD_DIRECTORY
|
||||
#define APM_BUILD_TYPE(type) ((type) == APM_BUILD_DIRECTORY)
|
||||
#endif
|
||||
|
||||
#endif // AP_VEHICLE_H
|
||||
|
|
Loading…
Reference in New Issue