Previous: slua_tbl_cmp, Up: Manipulating Tables
make a shallow copy of a table
#include <luasup/luasup.h>lua_Object slua_tbl_copy(lua_Object table);
lua_Object table
- the table to copy
This routine makes a shallow copy of a table. It doesn't not attempt to recursively create tables contained within the table.
It returns a table object upon success, or LUA_NOOBJECT
upon error.
Diab Jerius