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

Function compat53_reverse

extlibs/sol3/include/sol/sol.hpp:3112–3119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3110}
3111
3112static void compat53_reverse(lua_State *L, int a, int b) {
3113 for (; a < b; ++a, --b) {
3114 lua_pushvalue(L, a);
3115 lua_pushvalue(L, b);
3116 lua_replace(L, a);
3117 lua_replace(L, b);
3118 }
3119}
3120
3121COMPAT53_API void lua_rotate(lua_State *L, int idx, int n) {
3122 int n_elems = 0;

Callers 1

lua_rotateFunction · 0.85

Calls 1

lua_pushvalueFunction · 0.85

Tested by

no test coverage detected