1.1 --- a/templates/progops.h Sun Nov 14 00:50:17 2021 +0100
1.2 +++ b/templates/progops.h Sun Nov 28 02:03:21 2021 +0100
1.3 @@ -26,6 +26,7 @@
1.4 /* Generic instantiation operations, defining common members. */
1.5
1.6 __attr __new(const __table *table, __ref cls, size_t size, int immutable);
1.7 +__attr __new_stack(const __table *table, __ref cls, size_t size);
1.8 __attr __new_wrapper(__attr context, __attr attr);
1.9
1.10 /* Generic internal data allocation. */
1.11 @@ -86,6 +87,7 @@
1.12 #define __INSTANCETABLE(CLS) (__InstanceTable_##CLS)
1.13 #define __NEWINSTANCE(CLS) __new(&__INSTANCETABLE(CLS), &CLS, __INSTANCESIZE(CLS), 0)
1.14 #define __NEWINSTANCEIM(CLS) __new(&__INSTANCETABLE(CLS), &CLS, __INSTANCESIZE(CLS), 1)
1.15 +#define __NEWINSTANCE_STACK(CLS) __new_stack(&__INSTANCETABLE(CLS), &CLS, __INSTANCESIZE(CLS))
1.16 #define __ISINSTANCE(ATTR, TYPE) __BOOL(__fn_native_introspection_isinstance(__NULL, ATTR, TYPE))
1.17
1.18 /* Operations for accessing trailing data. */