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

superfluous args break enums silently #9

Open
Alloyed opened this issue Jun 3, 2017 · 0 comments
Open

superfluous args break enums silently #9

Alloyed opened this issue Jun 3, 2017 · 0 comments

Comments

@Alloyed
Copy link
Contributor

Alloyed commented Jun 3, 2017

This is a bug report, but it's also a walk through my attempt to resolve a specific problem I have on the off-chance you have some advice/might want to help :P

So I want to have a complex InputText widget, tab completion, history, etc. first thing's first, lets see what the callbacks return:

imgui.InputText("test", str, 255, {"CallbackAlways"}, print)

and it never triggers, either from the print function, or as an error: exciting. Maybe there's something wrong with callbacks, let's try a different flag:

changed = imgui.InputText("test", str, 255, {"EnterReturnsTrue", "CallbackAlways"}, print)

nothing either. somehow, the callback is interfering with the enum demarshaller in a way that silently fails. (also btw it'd be nice if callbacks worked). The same thing happens with Begin, which doesn't have extra args, so I'm pretty sure something is up in the definition of OPTIONAL_ENUM.

maybe love-imgui should throw errors if there are unused arguments at the end?

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

No branches or pull requests

1 participant