summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes/ref.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Rebrand preambles to RedotSpartan3222024-10-311-2/+4
|
* Fix undefined symbol error on Linux with virtual methods that take `Node *` ↵David Snopek2024-06-101-4/+4
| | | | arguments
* Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-101-8/+8
|
* Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-131-1/+1
|
* Identifiers containing double underscore are reserved according to the C++ ↵Andy Maloney2023-06-151-1/+1
| | | | | | | | | | | | | | | standard Rename __* to _gde_* https://timsong-cpp.github.io/cppwp/n3337/global.names https://en.cppreference.com/w/cpp/language/identifiers Identifiers appearing as a token or preprocessing token (i.e., not in user-defined-string-literal like operator ""id) (since C++11) of one of the following forms are reserved: - identifiers with a double underscore anywhere; - identifiers that begin with an underscore followed by an uppercase letter; - in the global namespace, identifiers that begin with an underscore.
* Revert the changes from PR #1044 and #1045 and standardize on `Object **` ↵David Snopek2023-06-071-3/+4
| | | | encoding in ptrcall
* Merge pull request #1116 from saki7/Ref-allow-non-const-accessDavid Snopek2023-05-241-14/+3
|\ | | | | Change Ref<T> to allow non const access to ptr
| * Change Ref<T> to allow non const access to ptrNana Sakisaka2023-05-171-14/+3
| |
* | Ensure GDExtension class is the correct type for the Godot engine classDavid Snopek2023-05-161-6/+2
|/
* Update to load function pointers for GDExtension interfaceDavid Snopek2023-05-091-3/+3
|
* Fix PtrToArg<Ref<T>> crashZhehang Ding2023-02-151-6/+9
|
* Added property info for ptr and ref + ported the implementation of the ↵Дмитрий Сальников2023-01-131-2/+2
| | | | `check` method
* Sync license copyright with upstream GH-70885Rémi Verschelde2023-01-101-29/+29
|
* Fix virtual GDExtension method Ref<T> conversionBastiaan Olij2022-12-131-2/+13
|
* Rename GDNative to GDExtensionGilles Roudière2022-12-121-6/+6
| | | | | | | | | | | | | Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension -> Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION -> EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
* Fix const qualifier for parameters in GDExtension api functionsEmmanuel Leblond2022-12-031-4/+4
|
* Use StringName in the whole GDExtension API instead of const char *Emmanuel Leblond2022-11-081-4/+4
|
* Run scripts to format and make headers consistentAaron Franke2022-10-091-3/+3
|
* Change PropertyInfo members to String.bruvzg2022-09-141-6/+6
|
* Merge pull request #677 from lukas-toenne/fix_object_ptr_argsFabio Alessandrelli2022-07-291-2/+2
|\ | | | | Fixed pointer indirection in the PtrToArg template for Object arguments.
| * Fix for pointer indirection in the Ref<T> template.Lukas Tönne2022-01-071-2/+2
| | | | | | | | Patch by Nana Sakisaka (saki7).
* | Update copyright yearRémi Verschelde2022-03-151-2/+2
|/
* Rename interface to gdn_interface because it's a defined keyword under windowsBastiaan Olij2021-10-281-2/+2
|
* Add Ref<T> binding support.Fabio Alessandrelli2021-09-281-0/+43
| | | | Added PtrToArg and GetTypeInfo adapted from Godot.
* Implement Ref copy constructorBastiaan Olij2021-09-271-20/+39
|
* Change constructor/destructor management of extension classesGeorge Marques2021-09-271-1/+1
| | | | | | | | | | | | | | | | | | This makes sure custom constructors are always called on extension classes. However, note that constructors should not take any parameters, since Godot doesn't support that. Parameters are ignore in memnew macro. Use memnew(MyClass()) instead of memnew(MyClass) since it now needs a value instead of a class name. This macro calls MyClass::_new() (define in GDCLASS macro) which ultimately calls Godot to create the object, ensuring that both the Godot and the extension instances are created. Non Godot classes (that don't derive godot::Object) are constructed as usual an can have parameters. memdelete is also changed for the same reason, as it needs to destroy the Godot object as well, and that automatically frees the bound extension instance.
* Replace bindgins to work with extensionsGeorge Marques2021-09-271-0/+222