mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Use macro for isvector instead
This commit is contained in:
parent
69bacee4d4
commit
2ab57e3069
2 changed files with 1 additions and 7 deletions
|
@ -129,7 +129,6 @@ LUA_API int lua_isstring(lua_State* L, int idx);
|
|||
LUA_API int lua_iscfunction(lua_State* L, int idx);
|
||||
LUA_API int lua_isLfunction(lua_State* L, int idx);
|
||||
LUA_API int lua_isuserdata(lua_State* L, int idx);
|
||||
LUA_API int lua_isvector(lua_State* L, int idx);
|
||||
LUA_API int lua_type(lua_State* L, int idx);
|
||||
LUA_API const char* lua_typename(lua_State* L, int tp);
|
||||
|
||||
|
@ -295,6 +294,7 @@ LUA_API void lua_unref(lua_State* L, int ref);
|
|||
#define lua_islightuserdata(L, n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA)
|
||||
#define lua_isnil(L, n) (lua_type(L, (n)) == LUA_TNIL)
|
||||
#define lua_isboolean(L, n) (lua_type(L, (n)) == LUA_TBOOLEAN)
|
||||
#define lua_isvector(L, n) (lua_type(L, (n)) == LUA_TVECTOR)
|
||||
#define lua_isthread(L, n) (lua_type(L, (n)) == LUA_TTHREAD)
|
||||
#define lua_isnone(L, n) (lua_type(L, (n)) == LUA_TNONE)
|
||||
#define lua_isnoneornil(L, n) (lua_type(L, (n)) <= LUA_TNIL)
|
||||
|
|
|
@ -294,12 +294,6 @@ int lua_isuserdata(lua_State* L, int idx)
|
|||
return (ttisuserdata(o) || ttislightuserdata(o));
|
||||
}
|
||||
|
||||
int lua_isvector(lua_State* L, int idx)
|
||||
{
|
||||
const TValue* o = index2adr(L, idx);
|
||||
return ttisvector(o);
|
||||
}
|
||||
|
||||
int lua_rawequal(lua_State* L, int index1, int index2)
|
||||
{
|
||||
StkId o1 = index2adr(L, index1);
|
||||
|
|
Loading…
Add table
Reference in a new issue