Next: , Previous: slua_tbl_el_delete, Up: Manipulating Tables


A.2.10 slua_tbl_cmp

compare two tables for equality

Synopsis

     #include <luasup/luasup.h>
     
     
     
int slua_tbl_cmp( lua_Object table1, lua_Object table2 );

Parameters

lua_Object table1
the first table
lua_Object table2
the second table

Description

This routine compares two tables for equality. it is a deep comparison.

Returns

0 if the two tables are equivalent, 1 if they are not.

Author

Diab Jerius