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

Function reverse

libraries/AP_Scripting/lua/src/lapi.c:193–200  ·  view source on GitHub ↗

** Reverse the stack segment from 'from' to 'to' ** (auxiliary to 'lua_rotate') */

Source from the content-addressed store, hash-verified

191** (auxiliary to 'lua_rotate')
192*/
193static void reverse (lua_State *L, StkId from, StkId to) {
194 for (; from < to; from++, to--) {
195 TValue temp;
196 setobj(L, &temp, from);
197 setobjs2s(L, from, to);
198 setobj2s(L, to, &temp);
199 }
200}
201
202
203/*

Callers 1

lua_rotateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected