luaa: checktype use both toudata

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-09 14:54:19 +02:00
parent 70cbf6bedb
commit 38a79ca9f0
1 changed files with 1 additions and 1 deletions

2
luaa.c
View File

@ -413,7 +413,7 @@ luaAe_type(lua_State *L)
luaL_checkany(L, 1); luaL_checkany(L, 1);
#define CHECK_TYPE(type) \ #define CHECK_TYPE(type) \
do { \ do { \
if(luaA_toudata(L, 1, #type)) \ if(luaA_toudata2(L, 1, #type) || luaA_toudata(L, 1, #type)) \
{ \ { \
lua_pushliteral(L, #type); \ lua_pushliteral(L, #type); \
return 1; \ return 1; \