Brew MP 1.0.2
Verifies the element at position nIndex on the Lua stack is an object
with the given interface ID and returns the pointer to its
-derived interface. If the object is not an IQI
object or if the IID does not match, then this function will raise an
Like the other ILua_Check() family of functions, this function should
preferably be called in a protected environment, and with positive
argument values best used to check C function arguments.
a pointer to the ILua object
the argument index of the object to check
the interface ID of the object, if known. May be 0 or AEEIID_IQI
if unknown or if validation is not desired
- An IQI* pointer that can be downcasted to the desired interface
type matching iid.
- This function does not return, but if the argument is not an interface
type it will throw an error.