MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / reverse

Function reverse

src/Chain/libraries/glua/lapi.cpp:196–203  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 3

lua_rotateFunction · 0.70
get_item_idsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected