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

Fix unused return value #67

Merged
merged 3 commits into from
Dec 10, 2024
Merged

Conversation

Roms1383
Copy link
Contributor

The crash happens when the function returns a value which is ignored on Redscript side.

For example, having defined this method:

public native class AudioSystemExt {
	public final native func RegisterEmitter(...) -> Bool;
}

Would work fine when used this way:

let registered = system.RegisterEmitter(...);

But would cause a crash when used this way:

system.RegisterEmitter(...);

@jac3km4
Copy link
Owner

jac3km4 commented Dec 10, 2024

lgtm!

@jac3km4 jac3km4 merged commit a1b7915 into jac3km4:master Dec 10, 2024
4 checks 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