mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
3a834e83c7
Referencing the original function to run is of questionable value and the only user uses it to grab the script environent from the upvalues. Instead, use a reference to the script environment table directly.
17 lines
372 B
C
17 lines
372 B
C
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
#ifndef SCRIPTING_DIRECTORY
|
|
#if HAL_OS_FATFS_IO
|
|
#define SCRIPTING_DIRECTORY "/APM/scripts"
|
|
#else
|
|
#define SCRIPTING_DIRECTORY "./scripts"
|
|
#endif //HAL_OS_FATFS_IO
|
|
#endif // SCRIPTING_DIRECTORY
|
|
|
|
int lua_get_current_env_ref();
|
|
const char* lua_get_modules_path();
|
|
void lua_abort(void) __attribute__((noreturn));
|
|
|