-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
area:manualIssues and PRs related to the Manual/Tutorials section of the documentationIssues and PRs related to the Manual/Tutorials section of the documentation
Description
The tutorial for GDExtension is here: https://docs.godotengine.org/en/stable/tutorials/scripting/gdextension/gdextension_cpp_example.html
In register_types.cpp, the code for example_library_init() is given as:
GDExtensionBool GDE_EXPORT example_library_init(const GDExtensionInterface *p_interface, const GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) {
However, GDExtensionInterface appears to be replaced by GDExtensionInterfaceGetProcAddress, so the code should instead be:
GDExtensionBool GDE_EXPORT example_library_init(const GDExtensionInterfaceGetProcAddress *p_interface, const GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) {
Metadata
Metadata
Assignees
Labels
area:manualIssues and PRs related to the Manual/Tutorials section of the documentationIssues and PRs related to the Manual/Tutorials section of the documentation