1.1 --- a/templates/types.h Thu Mar 02 23:57:55 2017 +0100
1.2 +++ b/templates/types.h Fri Mar 03 13:25:11 2017 +0100
1.3 @@ -24,6 +24,13 @@
1.4
1.5 #include <stdint.h>
1.6
1.7 +/* Include the special instance position value. The pos member of __obj refers
1.8 + to the special type attribute for classes, indicating which position holds
1.9 + the attribute describing the class type. For instances, it is set to the same
1.10 + attribute position as __class__ and is defined in the following file. */
1.11 +
1.12 +#include "instancepos.h"
1.13 +
1.14 typedef uint16_t __code;
1.15 typedef uint16_t __pos;
1.16 typedef uint16_t __pcode;
1.17 @@ -99,12 +106,6 @@
1.18
1.19 #define __FRAGMENT_SIZE(NUMBER) ((NUMBER) * sizeof(__attr) + 2 * sizeof(unsigned int))
1.20
1.21 -/* Special instance position value. The pos member of __obj refers to the
1.22 - special type attribute for classes, indicating which position holds the
1.23 - attribute describing the class type. For instances, it is set to zero. */
1.24 -
1.25 -#define __INSTANCEPOS 0
1.26 -
1.27 /* Attribute value setting. */
1.28
1.29 #define __ATTRVALUE(VALUE) ((__attr) {.value=VALUE})