From 286f1c6ea023cd993cf4e6a0d5d0529a3422a62e Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Sat, 20 Dec 2014 15:32:50 -0500 Subject: can get/set vals in structs --- src/struct.h | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/struct.h (limited to 'src/struct.h') diff --git a/src/struct.h b/src/struct.h new file mode 100644 index 00000000..ddf2081e --- /dev/null +++ b/src/struct.h @@ -0,0 +1,5 @@ +#ifndef _COLM_STRUCT_H + +#define colm_struct_val(obj, field) ((Tree**)(((HeapItem*)obj)+1))[field] + +#endif -- cgit v1.2.1