mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
Clearer distinction between types and tags
LUA_T* represents only types; tags (types + Variants) are represented by LUA_V* constants.
This commit is contained in:
parent
69c7139ff8
commit
46c3587a6f
22 changed files with 231 additions and 213 deletions
4
lua.h
4
lua.h
|
|
@ -72,7 +72,7 @@ typedef struct lua_State lua_State;
|
|||
#define LUA_TUSERDATA 7
|
||||
#define LUA_TTHREAD 8
|
||||
|
||||
#define LUA_NUMTAGS 9
|
||||
#define LUA_NUMTYPES 9
|
||||
|
||||
|
||||
|
||||
|
|
@ -412,6 +412,8 @@ LUA_API void (lua_toclose) (lua_State *L, int idx);
|
|||
#define lua_getuservalue(L,idx) lua_getiuservalue(L,idx,1)
|
||||
#define lua_setuservalue(L,idx) lua_setiuservalue(L,idx,1)
|
||||
|
||||
#define LUA_NUMTAGS LUA_NUMTYPES
|
||||
|
||||
/* }============================================================== */
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue