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

Function lua_copy

Libs/sol/sol.hpp:3074–3079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3072}
3073
3074COMPAT53_API void lua_copy(lua_State* L, int from, int to) {
3075 int abs_to = lua_absindex(L, to);
3076 luaL_checkstack(L, 1, "not enough stack slots");
3077 lua_pushvalue(L, from);
3078 lua_replace(L, abs_to);
3079}
3080
3081COMPAT53_API void lua_len(lua_State* L, int i) {
3082 switch (lua_type(L, i)) {

Callers 1

Calls 2

lua_absindexFunction · 0.85
luaL_checkstackFunction · 0.85

Tested by

no test coverage detected