Closed Nedok closed 4 years ago
hmm this is probably because ImGui updated their code and my parser needs to react.
In the mean time, If you remove the offending function from imgui.h before putting into the perl code then it will work.
I don't have much time to work on this so feel free to contribute but when I update my lua imgui code I will try to address this issue.
I hope you update the generator. https://github.com/slages/love-imgui also use your generator, it would be helpful to have latest imgui version working with löve
hey! I found the problems that cause this:
1) Some struct in ImGui now ends with "}; ", which doesn't match the regex for closing blocks. 2) InputFloat and Begin are also defined as obsolete functions. That means they're in the source code twice, which confuses the parser.
I've fixed number one, and I'm working on number two.
Ok, that wasn't too bad to do. @patrickriordan I put up a pull request. Could you take a quick look at it?
Thanks @spaderthomas for #9 ! This should be fixed now!
I was using windows 10, ImGui v1.67, perl5 (revision 5 version 26 subversion 3) and using the example command:
perl generate_imgui_bindings.pl <../imgui/imgui.h >imgui_iterator.inl
Gives the following message: