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

Function lua_copy

extlibs/sol3/include/sol/sol.hpp:2561–2566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2559}
2560
2561COMPAT53_API void lua_copy(lua_State *L, int from, int to) {
2562 int abs_to = lua_absindex(L, to);
2563 luaL_checkstack(L, 1, "not enough stack slots");
2564 lua_pushvalue(L, from);
2565 lua_replace(L, abs_to);
2566}
2567
2568COMPAT53_API void lua_len(lua_State *L, int i) {
2569 switch (lua_type(L, i)) {

Callers 1

Calls 3

lua_pushvalueFunction · 0.85
lua_absindexFunction · 0.70
luaL_checkstackFunction · 0.70

Tested by

no test coverage detected