luaa: checktype use both toudata
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
70cbf6bedb
commit
38a79ca9f0
2
luaa.c
2
luaa.c
|
@ -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; \
|
||||||
|
|
Loading…
Reference in New Issue