luaa: remove luaA_checkudata

We do not need it with the new system.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-11 13:37:41 +02:00
parent 7b75f9711d
commit d728875969
1 changed files with 0 additions and 16 deletions

16
luaa.h
View File

@ -107,22 +107,6 @@ luaA_dumpstack(lua_State *L)
fprintf(stderr, "------- Lua stack dump end ------\n"); fprintf(stderr, "------- Lua stack dump end ------\n");
} }
/** Check that an object is not a NULL reference.
* \param L The Lua state.
* \param ud The index of the object in the stack.
* \param tname The type name.
* \return A pointer to the object.
*/
static inline void *
luaA_checkudata(lua_State *L, int ud, const char *tname)
{
void **p = luaL_checkudata(L, ud, tname);
if(*p)
return p;
luaL_error(L, "invalid object");
return NULL;
}
/** Convert a object to a udata if possible. /** Convert a object to a udata if possible.
* \param L The Lua VM state. * \param L The Lua VM state.
* \param ud The index. * \param ud The index.