Next: , Previous: Miscellaneous Utilities, Up: Miscellaneous Utilities


A.3.1 slua_type

return the type of a Lua object

Synopsis

     #include <luasup/luasup.h>
     
     
     
SLuaArgType slua_type(lua_Object object);

Parameters

lua_Object object
the object to test

Description

This routine returns the type (SLuaArgType) of a Lua object. of the Lua types. If the type is not recognized, it returns SLua_BOGUS.

Returns

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

Author

Diab Jerius