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

Function luaD_rawrunprotected

libraries/AP_Scripting/lua/src/ldo.c:139–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137#pragma GCC push_options
138#pragma GCC optimize ("O0")
139int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {
140 unsigned short oldnCcalls = L->nCcalls;
141 struct lua_longjmp lj;
142 lj.status = LUA_OK;
143 lj.previous = L->errorJmp; /* chain new error handler */
144 L->errorJmp = &lj;
145#ifdef ARM_MATH_CM7
146 __asm__("vpush {s16-s31}");
147#endif
148 LUAI_TRY(L, &lj,
149 (*f)(L, ud);
150 );
151#ifdef ARM_MATH_CM7
152 __asm__("vpop {s16-s31}");
153#endif
154 L->errorJmp = lj.previous; /* restore old error handler */
155 L->nCcalls = oldnCcalls;
156 return lj.status;
157}
158#pragma GCC pop_options
159/* }====================================================== */
160

Callers 5

lua_newstateFunction · 0.85
luaH_resizeFunction · 0.85
lua_resumeFunction · 0.85
luaD_pcallFunction · 0.85
lua_checkstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected