MCPcopy Create free account
hub / github.com/Segs/Segs / compat53_reverse

Function compat53_reverse

3rd_party/lua_sol2/include/sol.hpp:3044–3051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3042}
3043
3044static void compat53_reverse(lua_State *L, int a, int b) {
3045 for (; a < b; ++a, --b) {
3046 lua_pushvalue(L, a);
3047 lua_pushvalue(L, b);
3048 lua_replace(L, a);
3049 lua_replace(L, b);
3050 }
3051}
3052
3053COMPAT53_API void lua_rotate(lua_State *L, int idx, int n) {
3054 int n_elems = 0;

Callers 1

lua_rotateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected