mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-15 04:13:58 -04:00
18 lines
488 B
C
18 lines
488 B
C
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
#ifndef SCRIPTING_DIRECTORY
|
|
// can't use HAL_OS_POSIX_IO here ebcause SITL assumes no APM prefix
|
|
#if HAL_OS_FATFS_IO || HAL_OS_LITTLEFS_IO
|
|
#define SCRIPTING_DIRECTORY "/APM/scripts"
|
|
#else
|
|
#define SCRIPTING_DIRECTORY "./scripts"
|
|
#endif // HAL_OS_FATFS_IO || HAL_OS_LITTLEFS_IO
|
|
#endif // SCRIPTING_DIRECTORY
|
|
|
|
int lua_get_current_env_ref();
|
|
const char* lua_get_modules_path();
|
|
void lua_abort(void) __attribute__((noreturn));
|
|
|