m2.h: POINTER: CELL

This commit is contained in:
Jan Nieuwenhuizen 2019-10-26 09:18:48 +02:00
parent 138d4b458d
commit 655568654e
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 10 additions and 0 deletions

View File

@ -53,7 +53,15 @@ struct timeval
*/
#define struct_size 12
#if POINTER_CELLS
#define CELL(x) (x)
#else
#define CELL(x) ((x*struct_size)+g_cells)
#define TYPE(x) ((x*struct_size)+g_cells)->type
#define CAR(x) ((x*struct_size)+g_cells)->car
#define CDR(x) ((x*struct_size)+g_cells)->cdr
@ -95,4 +103,6 @@ struct timeval
#define CADDR(x) CAR (CDR (CDR (x)))
#define CDADAR(x) CAR (CDR (CAR (CDR (x))))
#endif
#endif /* __MES_M2_H */