Fix comment in gdextension_interface.h

This commit is contained in:
Emmanuel Leblond 2023-10-16 00:41:42 +02:00
parent a574c0296b
commit 5aa9f1ce64
No known key found for this signature in database
GPG Key ID: C360860E645EFFC0
1 changed files with 4 additions and 1 deletions

View File

@ -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:
*