From d728875969800b7f4c4de8a4c98c6fa974ad143b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 11 Apr 2009 13:37:41 +0200 Subject: [PATCH] luaa: remove luaA_checkudata We do not need it with the new system. Signed-off-by: Julien Danjou --- luaa.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/luaa.h b/luaa.h index 30318ecd1..9d43c0e3a 100644 --- a/luaa.h +++ b/luaa.h @@ -107,22 +107,6 @@ luaA_dumpstack(lua_State *L) 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. * \param L The Lua VM state. * \param ud The index.