Closed tiawl closed 11 months ago
Oh, awesome, thanks for the very detailed bug reports!
Having taken a look at those:
1) Yep... that's actually kinda weird, in that I apparently deliberately removed stdarg.h
from the header at some point (with a comment saying "removing unnecessary headers"). Clearly it's not unnecessary, though, so I've added it back along with stddef.h
(since stdio.h
felt a little like overkill just to get size_t
- shout if there's some reason you thing stdio.h
would be preferable in this situation, though).
2) Ack, sorry - I was testing against an old version of the ImGui code prior to the SDL2/3 backend split. I've adjusted the templates so that those should generate cleanly now.
3) Ooh, that's a fun bug you found! Turns out there was an issue in the way that extern "C"
statements were generated where if the thing immediately following one was a #ifdef
or similar, it would see that as a single logical "child" statement and assume it was safe to generate a single-line extern
statement rather than a multi-line one with brackets. I've fixed that now so it shouldn't be so trigger-happy about trying to reduce things to a single line.
I've put in fixes that I think should resolve all of these in c6d4f5ac8d0cc0199bdf131863e061f49dcf962d - let me know if those work OK for you!
Thanks again!
Well ! Thank you for the bug fix, now it is OK from my side.
For the size_t
issue, I think you are right: stdio.h
is overkill for the situation. I suggested stdio.h
because it was already used but there is not any other reason to use it instead of stddef.h
(for my use case).
I am closing this issue.
Hi,
Here a list of minor changes/bugs I would like to submit for the
backend_conversion
branch:cimgui.h
header file with these prototypes inside:You are using
va_list
andsize_t
types. Unfortunately, you provide header files to allow the C compiler to find them into thecimgui.cpp
generated file. However the header file needs also these headers for the prototypes. Would you consider to move these lines fromcimgui.cpp
into thecimgui.h
?is failing with this output for
sdlrenderer2
andsdlrenderer3
:this output for
sdl2
:ths output for
sdl3
:I ran your generator on Ubuntu 20.04. Let me know if I forgot to specify crucial details.
into the generated header files, it is missing
{
after the:and at the end of the generated file, this matching part is also missing:
Thank you.