1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

Cleaner definition for macro 'ttisclosure'

This commit is contained in:
Roberto Ierusalimschy
2020-12-16 11:02:40 -03:00
parent 748d6d4e7a
commit e1ceea5674
+2 -1
View File
@@ -570,10 +570,11 @@ typedef struct Proto {
#define LUA_VCCL makevariant(LUA_TFUNCTION, 2) /* C closure */
#define ttisfunction(o) checktype(o, LUA_TFUNCTION)
#define ttisclosure(o) ((rawtt(o) & 0x1F) == LUA_VLCL)
#define ttisLclosure(o) checktag((o), ctb(LUA_VLCL))
#define ttislcf(o) checktag((o), LUA_VLCF)
#define ttisCclosure(o) checktag((o), ctb(LUA_VCCL))
#define ttisclosure(o) (ttisLclosure(o) || ttisCclosure(o))
#define isLfunction(o) ttisLclosure(o)