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

bitflags: Return 0 if param is nil #330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vtrlx
Copy link

@vtrlx vtrlx commented Dec 4, 2024

This allows the user to opt out of passing flags into functions when there are none to specify. While libraries in statically typed languages expect users to pass in an explicit _NONE flag, Lua's ability to pass a variable number of parameters could easily be interpreted as explicitly not giving any flags when none are passed.

Fixes #329

This allows the user to opt out of passing flags into functions when
there are none to specify. While libraries in statically typed languages
expect users to pass in an explicit _NONE flag, Lua's ability to pass a
variable number of parameters could easily be interpreted as explicitly
not giving any flags when none are passed.

Fixes lgi-devs#329
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.

LGI throws an error when passing nil to a bitflag parameter
1 participant