Previous: slua_type, Up: Miscellaneous Utilities
return a string containing the name of a type
#include <luasup/luasup.h>const char *slua_type_name(SLuaArgType type);
SLuaArgType type
- 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
This routine returns a pointer to a character string identifying one
of the Lua types. If the type is not recognized, it returns NULL
.
The values of type that are supported are
SLua_STRING
,
SLua_NUMBER
,
SLua_TABLE
,
SLua_NIL
,
SLua_FUNCTION
,
SLua_CFUNCTION
,
SLua_USERDATA
.
Diab Jerius