LibCore: Add REGISTER_ABSTRACT_CORE_OBJECT

This behaves identically to REGISTER_CORE_OBJECT, but the resulting
ObjectClassRegistration's construct() method will always return null.
This commit is contained in:
thislooksfun 2021-10-25 20:20:36 -05:00 committed by Andreas Kling
parent c3b0b9057e
commit 9cf9e604c3

View file

@ -20,6 +20,13 @@
namespace Core {
#define REGISTER_ABSTRACT_CORE_OBJECT(namespace_, class_name) \
namespace Core { \
namespace Registration { \
Core::ObjectClassRegistration registration_##class_name(#namespace_ "::" #class_name, []() { return RefPtr<Object>(); }); \
} \
}
#define REGISTER_CORE_OBJECT(namespace_, class_name) \
namespace Core { \
namespace Registration { \