Previous: slua_type, Up: Miscellaneous Utilities


A.3.2 slua_type_name

return a string containing the name of a type

Synopsis

     #include <luasup/luasup.h>
     
     
     
const char *slua_type_name(SLuaArgType type);

Parameters

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

Description

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 .

Author

Diab Jerius