dearimgui / dear_bindings

C header (and language binding metadata) generator for Dear ImGui
MIT License
221 stars 12 forks source link

Missing `void` type parameter for functions without parameters #26

Closed oskarnp closed 1 year ago

oskarnp commented 1 year ago

Example:

CIMGUI_API ImGuiID ImGui_DockSpaceOverViewport();                                         // Implied viewport = NULL, flags = 0, window_class = NULL
CIMGUI_API ImGuiID ImGui_DockSpaceOverViewportEx(const ImGuiViewport* viewport /* = NULL */, ImGuiDockNodeFlags flags /* = 0 */, const ImGuiWindowClass* window_class /* = NULL */);

Minor issue but omitting void technically means any number of parameters would be allowed in C, and compilers usually issues a warning for this.

Actually this only seems to occur for overloaded functions, all others have void correctly.