ardupilot/libraries/AP_HAL/HAL.cpp

16 lines
238 B
C++

#include <assert.h>
#include "HAL.h"
namespace AP_HAL {
HAL::FunCallbacks::FunCallbacks(void (*setup_fun)(void), void (*loop_fun)(void))
: _setup(setup_fun)
, _loop(loop_fun)
{
assert(setup_fun);
assert(loop_fun);
}
}