mirror of https://github.com/ArduPilot/ardupilot
AP_Menu: replace header guard with pragma once
This commit is contained in:
parent
382b6f87fe
commit
9c4f93244e
|
@ -12,9 +12,7 @@
|
||||||
///
|
///
|
||||||
/// Arguments passed to the handler function are pre-converted to both
|
/// Arguments passed to the handler function are pre-converted to both
|
||||||
/// long and float for convenience.
|
/// long and float for convenience.
|
||||||
|
#pragma once
|
||||||
#ifndef __AP_MENU_H__
|
|
||||||
#define __AP_MENU_H__
|
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
@ -173,5 +171,3 @@ private:
|
||||||
#define MENU2(name, prompt, commands, preprompt) \
|
#define MENU2(name, prompt, commands, preprompt) \
|
||||||
static const char __menu_name__ ## name[] = prompt; \
|
static const char __menu_name__ ## name[] = prompt; \
|
||||||
static Menu name(__menu_name__ ## name, commands, ARRAY_SIZE(commands), preprompt)
|
static Menu name(__menu_name__ ## name, commands, ARRAY_SIZE(commands), preprompt)
|
||||||
|
|
||||||
#endif // __AP_COMMON_MENU_H__
|
|
||||||
|
|
Loading…
Reference in New Issue