Developer

API Reference

ILuaEx_CheckLWString()

Brew Release
Brew MP 1.0.2
See Also
ILuaEx_PushWString() ILuaEx_ToLWString(), ILuaEx_ToWString()
Description
Checks whether the given function argument is a valid wide character string.
Prototypes: const AECHAR *ILuaEx_CheckLWString(ILuaEx *pif, int nIndex, int *pnLen)
static __inline const AECHAR * ILuaEx_CheckWString(ILuaEx *pif, int nIndex) { return ILuaEx_CheckLWString(pif, nIndex, NULL); }
Parameters
  • pif
    []:
    a pointer to the ILuaEx object
  • nIndex
    []:
    the number of the argument to check. Note this should be a positive-valued number, as the error message will only print out the error based on function arguments.
  • pnLen
    []:
    an optional pointer to an integer that will on output be set to the number of characters in the string
Interface
Return
A pointer to the start of the string, which will not be NULL.
Side Effect
If the argument is not a string, it will throw an error.
  • Follow