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

Add option for handling internals #364

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Merge branch 'master' into internals
  • Loading branch information
Thraka authored Feb 12, 2024
commit 9368cc84bffc9f9ad33972c87faec3dd7b16f1c3
6 changes: 6 additions & 0 deletions src/CodeGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,12 @@ void EmitFunctions(bool isInternal)
if (exportedName.Contains("~")) { continue; }
if (overload.Parameters.Any(tr => tr.Type.Contains('('))) { continue; } // TODO: Parse function pointer parameters.

if ((overload.FriendlyName == "GetID" || overload.FriendlyName == "PushID") && overload.Parameters.Length > 1)
{
// skip ImGui.Get/PushID(start, end) overloads as they would overlap with existing
continue;
}

bool hasVaList = false;
for (int i = 0; i < overload.Parameters.Length; i++)
{
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.