Go to the source code of this file.
◆ CPPGC_USING_PRE_FINALIZER
#define CPPGC_USING_PRE_FINALIZER |
( |
|
Class, |
|
|
|
PreFinalizer |
|
) |
| |
Value: public: \
void* object) { \
static_assert(cppgc::IsGarbageCollectedOrMixinTypeV<Class>, \
"Only garbage collected objects can have prefinalizers"); \
Class* self = static_cast<Class*>(object); \
self->Class::PreFinalizer(); \
return true; \
} \
\
private: \
prefinalizer_dummy_{this}; \
static_assert(true, "Force semicolon.")
Definition at line 33 of file prefinalizer.h.