MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / laction

Function laction

libraries/AP_Scripting/lua/src/lua.c:125–128  ·  view source on GitHub ↗

** Function to be called at a C signal. Because a C signal cannot ** just change a Lua state (as there is no proper synchronization), ** this function only sets a hook that, when called, will stop the ** interpreter. */

Source from the content-addressed store, hash-verified

123** interpreter.
124*/
125static void laction (int i) {
126 signal(i, SIG_DFL); /* if another SIGINT happens, terminate process */
127 lua_sethook(globalL, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1);
128}
129
130
131static void print_usage (const char *badoption) {

Callers

nothing calls this directly

Calls 1

lua_sethookFunction · 0.85

Tested by

no test coverage detected