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::internal::IsGarbageCollectedTypeV<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.")
bool IsHeapObjectAlive(const T *object) const
#define CPPGC_NO_UNIQUE_ADDRESS
Definition at line 33 of file prefinalizer.h.