Userdata represent C values in Lua. A full userdata represents a block of memory. It is an object (like a table): you must create it, it can have its own metatable, and you can detect when it is being collected. A full userdata is only equal to itself (under raw equality).
When Lua collects a full userdata with a gc metamethod, Lua calls the metamethod and marks the userdata as finalized. When this userdata is collected again then Lua frees its corresponding memory.
- pif:a pointer to the ILuaEx object
- nNumBytes:number of bytes to allocate for the userdata
void *ILuaEx_NewUserData(ILuaEx *pif, int nNumBytes)