MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / reverse

Function reverse

source/extern/lua/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 4

lua_rotateFunction · 0.70
breakAtPositionMethod · 0.50
WorldStructureMethod · 0.50
CalculateOptimalEditsFunction · 0.50

Calls

no outgoing calls

Tested by 1

CalculateOptimalEditsFunction · 0.40