Skip to content

Commit 1901729

Browse files
committed
Remove Bool8 entirely, as it is no longer used.
1 parent 5c9bab0 commit 1901729

2 files changed

Lines changed: 0 additions & 31 deletions

File tree

src/CodeGenerator/Program.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class Program
1414
{
1515
private static readonly Dictionary<string, string> s_wellKnownTypes = new Dictionary<string, string>()
1616
{
17-
// { "bool", "Bool8" },
1817
{ "bool", "byte" },
1918
{ "unsigned char", "byte" },
2019
{ "char", "byte" },
@@ -305,15 +304,6 @@ static void Main(string[] args)
305304
if (field.ArraySize != 0)
306305
{
307306
string addrTarget = s_legalFixedTypes.Contains(rawType) ? $"NativePtr->{field.Name}" : $"&NativePtr->{field.Name}_0";
308-
309-
if (field.Type == "bool")
310-
{
311-
// There appear to be codegen bugs on Unix when RangeAccessor<Bool8> is used which result
312-
// in values beyond the accessed range becoming corrupted.
313-
// Besides, bool is a better type to use in the first place.
314-
typeStr = "bool";
315-
}
316-
317307
writer.WriteLine($"public RangeAccessor<{typeStr}> {field.Name} => new RangeAccessor<{typeStr}>({addrTarget}, {field.ArraySize});");
318308
}
319309
else if (typeStr.Contains("ImVector"))

src/ImGui.NET/Bool8.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)