mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
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:
parent
c3b0b9057e
commit
9cf9e604c3
1 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,13 @@
|
||||||
|
|
||||||
namespace Core {
|
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) \
|
#define REGISTER_CORE_OBJECT(namespace_, class_name) \
|
||||||
namespace Core { \
|
namespace Core { \
|
||||||
namespace Registration { \
|
namespace Registration { \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue