1.1 --- a/templates/progops.h Sun Mar 19 00:56:43 2017 +0100
1.2 +++ b/templates/progops.h Fri Mar 24 22:39:37 2017 +0100
1.3 @@ -25,8 +25,8 @@
1.4
1.5 /* Generic instantiation operations, defining common members. */
1.6
1.7 -__attr __new(const __table *table, __ref cls, size_t size);
1.8 -__attr __new_wrapper(__ref context, __attr attr);
1.9 +__attr __new(const __table *table, __ref cls, size_t size, int immutable);
1.10 +__attr __new_wrapper(__attr context, __attr attr);
1.11
1.12 /* Generic internal data allocation. */
1.13
1.14 @@ -78,7 +78,8 @@
1.15
1.16 /* Convenience definitions. */
1.17
1.18 -#define __NEWINSTANCE(__CLS) __new(&__InstanceTable_##__CLS, &__CLS, sizeof(__obj_##__CLS))
1.19 +#define __NEWINSTANCE(__CLS) __new(&__InstanceTable_##__CLS, &__CLS, sizeof(__obj_##__CLS), 0)
1.20 +#define __NEWINSTANCEIM(__CLS) __new(&__InstanceTable_##__CLS, &__CLS, sizeof(__obj_##__CLS), 1)
1.21 #define __ISINSTANCE(__ATTR, __TYPE) __BOOL(__fn_native_introspection_isinstance(__NULL, __ATTR, __TYPE))
1.22
1.23 #endif /* __PROGOPS_H__ */