templates/progops.h | raw changeset files shortlog |
1.1 --- a/templates/progops.h Sat Feb 11 15:34:30 2017 +0100 1.2 +++ b/templates/progops.h Sun Feb 12 00:25:36 2017 +0100 1.3 @@ -75,6 +75,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__ */