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

Fixes issue where Callable macro expansion would not register method correctly #139

Merged
merged 5 commits into from
Sep 30, 2023

Conversation

PadraigK
Copy link
Contributor

The macro was expanding to register a func with the literal name "funcName" instead of the contents of the variable funcName.

Also adds tests for the Godot, Export and Callable macros.

@PadraigK PadraigK changed the title Fixes issue where Callable macro expansion would not register correctly Fixes issue where Callable macro expansion would not register method correctly Sep 29, 2023
var goodName: String = "Supertop"

func _mproxy_set_goodName (args: [Variant]) -> Variant? {
/* goodName = String(args [0])!*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not changed in this PR, but surprising that this expands to a /* */ block — is this a bug @migueldeicaza?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was some leftover debugging code, I will remove it.

@migueldeicaza
Copy link
Owner

Thank you for the contribution!

@migueldeicaza migueldeicaza merged commit 242a8a3 into migueldeicaza:main Sep 30, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants