Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions for non-ptr style virtual calls in GDExtension #80671

Merged
merged 1 commit into from
Sep 20, 2023

Commits on Sep 20, 2023

  1. Add functions for non-ptr style virtual calls in GDExtension

    This adds two functions to `GDExtensionClassCreationInfo` that allow for developers to supply a generic virtual call function along with user data to be sent to that call.
    
    If `get_virutal_call_data_func` is not null, extensions call this function to get user data to pass to a supplied `call_virtual_with_data_func`. Both must be provided is one is provided.
    
    If `get_virtual_call_data_func` is null, Godot falls back to the old `get_virtual_func` logic.
    
    Fixes godotengine#63275
    
    Co-authored-by: David Snopek <[email protected]>
    fuzzybinary and dsnopek committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    60851af View commit details
    Browse the repository at this point in the history