diff options
author | Jan Haller <bromeon@gmail.com> | 2022-03-27 21:31:00 +0200 |
---|---|---|
committer | Jan Haller <bromeon@gmail.com> | 2022-03-27 21:31:00 +0200 |
commit | f88bdac40305b824a9ceb6ed1dfb2dd5133c3e27 (patch) | |
tree | 575ca654da3fc8a298827c8bc70e61aec9b13906 /core/extension | |
parent | a5eed70fa2edcf755d6abea2077232e38381449b (diff) |
GDExtension: change to_string signature to accept GDNativeStringPtr instead of returning const char*
Diffstat (limited to 'core/extension')
-rw-r--r-- | core/extension/gdnative_interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/extension/gdnative_interface.h b/core/extension/gdnative_interface.h index cc2957ec56..c86bee316d 100644 --- a/core/extension/gdnative_interface.h +++ b/core/extension/gdnative_interface.h @@ -208,7 +208,7 @@ typedef struct { typedef const GDNativePropertyInfo *(*GDNativeExtensionClassGetPropertyList)(GDExtensionClassInstancePtr p_instance, uint32_t *r_count); typedef void (*GDNativeExtensionClassFreePropertyList)(GDExtensionClassInstancePtr p_instance, const GDNativePropertyInfo *p_list); typedef void (*GDNativeExtensionClassNotification)(GDExtensionClassInstancePtr p_instance, int32_t p_what); -typedef const char *(*GDNativeExtensionClassToString)(GDExtensionClassInstancePtr p_instance); +typedef void (*GDNativeExtensionClassToString)(GDExtensionClassInstancePtr p_instance, GDNativeStringPtr p_out); typedef void (*GDNativeExtensionClassReference)(GDExtensionClassInstancePtr p_instance); typedef void (*GDNativeExtensionClassUnreference)(GDExtensionClassInstancePtr p_instance); typedef void (*GDNativeExtensionClassCallVirtual)(GDExtensionClassInstancePtr p_instance, const GDNativeTypePtr *p_args, GDNativeTypePtr r_ret); |