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

Function compat53_reverse

Libs/sol/sol.hpp:3637–3644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3635}
3636
3637static void compat53_reverse(lua_State* L, int a, int b) {
3638 for (; a < b; ++a, --b) {
3639 lua_pushvalue(L, a);
3640 lua_pushvalue(L, b);
3641 lua_replace(L, a);
3642 lua_replace(L, b);
3643 }
3644}
3645
3646COMPAT53_API void lua_rotate(lua_State* L, int idx, int n) {
3647 int n_elems = 0;

Callers 1

lua_rotateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected