Skip to content

GDExtension tutorial uses old parameters for example_library_init() #7477

@dcuny

Description

@dcuny

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

No one assigned

    Labels

    area:manualIssues and PRs related to the Manual/Tutorials section of the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions