mirror of
https://github.com/Relintai/gdnative_cpp.git
synced 2024-11-20 10:57:23 +01:00
Renamed the PANDEMONIUM_CLASS macro to GDCLASS.
This commit is contained in:
parent
8e75e50028
commit
8b6cf5efab
@ -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() { }
|
||||
|
||||
|
@ -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() { \
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
class SimpleClass : public Reference {
|
||||
PANDEMONIUM_CLASS(SimpleClass, Reference);
|
||||
GDCLASS(SimpleClass, Reference);
|
||||
|
||||
public:
|
||||
SimpleClass() {}
|
||||
|
Loading…
Reference in New Issue
Block a user