mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 00:32:24 +00:00
Simplify __TYPEOF.
This commit is contained in:
parent
cca132d784
commit
f1cbbdba28
2 changed files with 2 additions and 10 deletions
|
|
@ -244,12 +244,8 @@ static inline double SYSTEM_ABSD(double i) {return i >= 0.0 ? i : -i;}
|
|||
#define __WITHCHK __HALT(-7)
|
||||
|
||||
|
||||
//#define __IS(tag, typ, level) (*(tag-(__BASEOFF-level))==(LONGINT)(address)typ##__typ)
|
||||
//#define __TYPEOF(p) ((address*)(address)(*(((LONGINT*)(p))-1)))
|
||||
//#define __ISP(p, typ, level) __IS(__TYPEOF(p),typ,level)
|
||||
|
||||
#define __IS(tag, typ, level) (*(tag-(__BASEOFF-level))==(address)typ##__typ)
|
||||
#define __TYPEOF(p) ((address*)(address)(*(((address*)(p))-1)))
|
||||
#define __TYPEOF(p) (*(((address**)(p))-1))
|
||||
#define __ISP(p, typ, level) __IS(__TYPEOF(p),typ,level)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue