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

Lua plugin: Add __eq metamethod for C++ objects to get equality check working #330

Merged
merged 1 commit into from
Jun 26, 2022

Conversation

Dakror
Copy link
Contributor

@Dakror Dakror commented Jun 26, 2022

The PR fixes lua sided equality checks for objects returned from the C++ side.

Before this change an element returned by a selector query function in Lua would always compare false against the same element retrieved in a different call, even though the pointer was identical.

@mikke89 mikke89 added the Lua Lua binding issues label Jun 26, 2022
@mikke89 mikke89 merged commit 5064a9c into mikke89:master Jun 26, 2022
@mikke89
Copy link
Owner

mikke89 commented Jun 26, 2022

Makes sense, thank you!

@Dakror Dakror deleted the lua_eq branch October 15, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lua Lua binding issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants