MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / clone

Function clone

src/ltablib.cpp:293–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291
292
293static int clone (lua_State *L) {
294 luaL_checktype(L, 1, LUA_TTABLE);
295 auto depth = (int)luaL_optinteger(L, 2, 100);
296 luaL_argcheck(L, depth >= 1, 2, "depth must be at least 1");
297 auxclone(L, 1, depth);
298 return 1;
299}
300
301
302

Callers

nothing calls this directly

Calls 2

luaL_checktypeFunction · 0.85
auxcloneFunction · 0.85

Tested by

no test coverage detected