Next: slua_type_name, Previous: Miscellaneous Utilities, Up: Miscellaneous Utilities
return the type of a Lua object
#include <luasup/luasup.h>SLuaArgType slua_type(lua_Object object);
lua_Object object
- the object to test
This routine returns the type (SLuaArgType
) of a Lua object.
of the Lua types. If the type is not recognized, it returns
SLua_BOGUS
.
Possible values for a SLuaArgType
are as follows:
SLua_STRING
,
SLua_NUMBER
,
SLua_TABLE
,
SLua_NIL
,
SLua_FUNCTION
,
SLua_CFUNCTION
,
SLua_USERDATA
,
SLua_TYPES
,
SLua_OPTIONAL
,
SLua_DELENTRY
,
SLua_COPY
,
SLua_BOGUS
Diab Jerius