Renamed the PANDEMONIUM_CLASS macro to GDCLASS.

This commit is contained in:
Relintai 2023-10-24 21:32:18 +02:00
parent 8e75e50028
commit 8b6cf5efab
3 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ Create `init.cpp` under `SimpleLibrary/src/` and add the following code:
class SimpleClass : public Reference { class SimpleClass : public Reference {
PANDEMONIUM_CLASS(SimpleClass, Reference); GDCLASS(SimpleClass, Reference);
public: public:
SimpleClass() { } SimpleClass() { }

View File

@ -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_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_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. // ___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: \ public: \
inline static const char *___get_class_name() { \ inline static const char *___get_class_name() { \

View File

@ -34,7 +34,7 @@
class SimpleClass : public Reference { class SimpleClass : public Reference {
PANDEMONIUM_CLASS(SimpleClass, Reference); GDCLASS(SimpleClass, Reference);
public: public:
SimpleClass() {} SimpleClass() {}