aboutsummaryrefslogtreecommitdiff
path: root/src/buildvm_ppcspe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildvm_ppcspe.h')
-rw-r--r--src/buildvm_ppcspe.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/buildvm_ppcspe.h b/src/buildvm_ppcspe.h
index 9a066bc6..8c25fdf8 100644
--- a/src/buildvm_ppcspe.h
+++ b/src/buildvm_ppcspe.h
@@ -748,6 +748,19 @@ static const char *const globnames[] = {
748static const char *const extnames[] = { 748static const char *const extnames[] = {
749 (const char *)0 749 (const char *)0
750}; 750};
751#define Dt1(_V) (int)(ptrdiff_t)&(((lua_State *)0)_V)
752#define Dt2(_V) (int)(ptrdiff_t)&(((global_State *)0)_V)
753#define Dt3(_V) (int)(ptrdiff_t)&(((TValue *)0)_V)
754#define Dt4(_V) (int)(ptrdiff_t)&(((GCobj *)0)_V)
755#define Dt5(_V) (int)(ptrdiff_t)&(((GCstr *)0)_V)
756#define Dt6(_V) (int)(ptrdiff_t)&(((GCtab *)0)_V)
757#define Dt7(_V) (int)(ptrdiff_t)&(((GCfuncL *)0)_V)
758#define Dt8(_V) (int)(ptrdiff_t)&(((GCfuncC *)0)_V)
759#define Dt9(_V) (int)(ptrdiff_t)&(((GCproto *)0)_V)
760#define DtA(_V) (int)(ptrdiff_t)&(((GCupval *)0)_V)
761#define DtB(_V) (int)(ptrdiff_t)&(((Node *)0)_V)
762#define DtC(_V) (int)(ptrdiff_t)&(((int *)0)_V)
763#define DtD(_V) (int)(ptrdiff_t)&(((GCtrace *)0)_V)
751#define DISPATCH_GL(field) (GG_DISP2G + (int)offsetof(global_State, field)) 764#define DISPATCH_GL(field) (GG_DISP2G + (int)offsetof(global_State, field))
752#define DISPATCH_J(field) (GG_DISP2J + (int)offsetof(jit_State, field)) 765#define DISPATCH_J(field) (GG_DISP2J + (int)offsetof(jit_State, field))
753#define PC2PROTO(field) ((int)offsetof(GCproto, field)-(int)sizeof(GCproto)) 766#define PC2PROTO(field) ((int)offsetof(GCproto, field)-(int)sizeof(GCproto))