Program Listing for File mavros_plugin_register_macro.hpp
↰ Return to documentation for file (/tmp/ws/src/mavros/mavros/include/mavros/mavros_plugin_register_macro.hpp
)
/*
* Copyright 2021 Vladimir Ermakov.
*
* This file is part of the mavros package and subject to the license terms
* in the top-level LICENSE file of the mavros repository.
* https://github.com/mavlink/mavros/tree/master/LICENSE.md
*/
#pragma once
#ifndef MAVROS__MAVROS_PLUGIN_REGISTER_MACRO_HPP_
#define MAVROS__MAVROS_PLUGIN_REGISTER_MACRO_HPP_
#include <class_loader/class_loader.hpp>
#include <mavros/plugin.hpp>
#define MAVROS_PLUGIN_REGISTER(PluginClass) \
CLASS_LOADER_REGISTER_CLASS( \
mavros::plugin::PluginFactoryTemplate<PluginClass>, \
mavros::plugin::PluginFactory)
#endif // MAVROS__MAVROS_PLUGIN_REGISTER_MACRO_HPP_