From 8b6cf5efab2a5be578591904f615af70721b677f Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 24 Oct 2023 21:32:18 +0200 Subject: [PATCH] Renamed the PANDEMONIUM_CLASS macro to GDCLASS. --- README.md | 2 +- core/pandemonium.h | 2 +- test/src/init.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 952d304..8d9fbb9 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ Create `init.cpp` under `SimpleLibrary/src/` and add the following code: class SimpleClass : public Reference { - PANDEMONIUM_CLASS(SimpleClass, Reference); + GDCLASS(SimpleClass, Reference); public: SimpleClass() { } diff --git a/core/pandemonium.h b/core/pandemonium.h index 3a182d2..d7a4340 100644 --- a/core/pandemonium.h +++ b/core/pandemonium.h @@ -132,7 +132,7 @@ inline T *create_custom_class_instance() { // ___get_base_id: Gets the ID of the direct base class, as returned by ___get_id // ___get_base_class_name: Name of the direct base class // ___get_from_variant: Converts a Variant into an Object*. Will be non-null if the class matches. -#define PANDEMONIUM_CLASS(Name, Base) \ +#define GDCLASS(Name, Base) \ \ public: \ inline static const char *___get_class_name() { \ diff --git a/test/src/init.cpp b/test/src/init.cpp index 9a0119f..76aa7fa 100644 --- a/test/src/init.cpp +++ b/test/src/init.cpp @@ -34,7 +34,7 @@ class SimpleClass : public Reference { - PANDEMONIUM_CLASS(SimpleClass, Reference); + GDCLASS(SimpleClass, Reference); public: SimpleClass() {}