From 5aa9f1ce64818045133ad920f8cb107ed9c8446f Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Mon, 16 Oct 2023 00:41:42 +0200 Subject: [PATCH] Fix comment in gdextension_interface.h --- core/extension/gdextension_interface.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/extension/gdextension_interface.h b/core/extension/gdextension_interface.h index ae7c5e0d2a3..240da6e0738 100644 --- a/core/extension/gdextension_interface.h +++ b/core/extension/gdextension_interface.h @@ -590,7 +590,10 @@ typedef GDExtensionInterfaceFunctionPtr (*GDExtensionInterfaceGetProcAddress)(co * * For example: * - * GDExtensionInterfaceGetGodotVersion *get_godot_version = (GDExtensionInterfaceGetGodotVersion)p_get_proc_address("get_godot_version"); + * GDExtensionInterfaceGetGodotVersion get_godot_version = (GDExtensionInterfaceGetGodotVersion)p_get_proc_address("get_godot_version"); + * + * (Note that snippet may cause "cast between incompatible function types" on some compilers, you can + * silence this by adding an intermediary `void*` cast.) * * You can then call it like a normal function: *