2023-03-09 00:47:50 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
|
|
|
|
#ifndef SCRIPTING_DIRECTORY
|
2025-01-02 11:49:11 -04:00
|
|
|
// can't use HAL_OS_POSIX_IO here ebcause SITL assumes no APM prefix
|
|
|
|
#if HAL_OS_FATFS_IO || HAL_OS_LITTLEFS_IO
|
2023-03-09 00:47:50 -04:00
|
|
|
#define SCRIPTING_DIRECTORY "/APM/scripts"
|
|
|
|
#else
|
|
|
|
#define SCRIPTING_DIRECTORY "./scripts"
|
2025-01-02 11:49:11 -04:00
|
|
|
#endif // HAL_OS_FATFS_IO || HAL_OS_LITTLEFS_IO
|
2023-03-09 00:47:50 -04:00
|
|
|
#endif // SCRIPTING_DIRECTORY
|
|
|
|
|
2024-07-25 18:34:22 -03:00
|
|
|
int lua_get_current_env_ref();
|
2024-02-22 21:22:03 -04:00
|
|
|
const char* lua_get_modules_path();
|
2024-02-06 18:35:42 -04:00
|
|
|
void lua_abort(void) __attribute__((noreturn));
|
|
|
|
|