Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 30, 2023
1 parent e7fb35f commit f835d3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Quake/imgui_lua_bindings/generate_imgui_bindings.pl
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,14 @@ sub generateImguiGeneric {
# we are handling these as ints
} elsif ($args[$i] =~ m/^\s*(ImGuiCol|ImGuiCond|ImGuiDataType|ImGuiDir|ImGuiKey|ImGuiNavInput|ImGuiMouseButton|ImGuiMouseCursor|ImGuiSortDirection|ImGuiStyleVar|ImGuiTableBgTarget)\s+(\S*)(\s*=\s*\d*|)\s*$/) {
#These are ints
my $type = $1;
my $name = $2;
if ($3 =~ m/^\s*=\s*(\d*)$/) {
push(@before, "OPTIONAL_INT_ARG($name, $1)");
} else {
push(@before, "INT_ARG($name)");
}
push(@funcArgs, $name);
push(@funcArgs, "($type)$name");
# generic enum flags
# we are handling these as ints
} elsif ($args[$i] =~ m/^\s*Im\w+Flags\s+(\w*)(\s*=\s*\d*|)\s*$/) {
Expand Down

0 comments on commit f835d3a

Please sign in to comment.