| 291 | |
| 292 | |
| 293 | static 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 |
nothing calls this directly
no test coverage detected