templates/progops.h | raw changeset files shortlog | attr-strvalue-without-size |
1.1 --- a/templates/progops.h Sat Feb 11 23:15:21 2017 +0100 1.2 +++ b/templates/progops.h Sun Feb 12 00:26:41 2017 +0100 1.3 @@ -76,6 +76,7 @@ 1.4 1.5 /* Convenience definitions. */ 1.6 1.7 +#define __NEWINSTANCE(__CLS) __new(&__InstanceTable_##__CLS, &__CLS, sizeof(__obj_##__CLS)) 1.8 #define __ISINSTANCE(__ATTR, __TYPE) __BOOL(__fn_native_introspection_isinstance((__attr[]) {__NULL, __ATTR, __TYPE})) 1.9 1.10 #endif /* __PROGOPS_H__ */