From 7beae7311b0b0f0d83d68e9a3620acb39862d72f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 26 Oct 2007 12:56:03 +0000 Subject: [PATCH] Added setting for legacy overload generation. --- Source/Bind/Main.cs | 1 + Source/Bind/Settings.cs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Bind/Main.cs b/Source/Bind/Main.cs index 1a9f4164..90a714b7 100644 --- a/Source/Bind/Main.cs +++ b/Source/Bind/Main.cs @@ -97,6 +97,7 @@ namespace Bind Settings.Compatibility |= b[1].ToLower().Contains("enums") ? Settings.Legacy.NoAdvancedEnumProcessing : Settings.Legacy.None; Settings.Compatibility |= b[1].ToLower().Contains("safe") ? Settings.Legacy.NoPublicUnsafeFunctions : Settings.Legacy.None; //Settings.Compatibility |= b[1].ToLower().Contains("novoid") ? Settings.Legacy.TurnVoidPointersToIntPtr : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower().Contains("permutations") ? Settings.Legacy.GenerateAllPermutations : Settings.Legacy.None; break; case "enum": Settings.NestedEnumsClass = b[1]; diff --git a/Source/Bind/Settings.cs b/Source/Bind/Settings.cs index 08515f9e..e7064c1e 100644 --- a/Source/Bind/Settings.cs +++ b/Source/Bind/Settings.cs @@ -39,7 +39,7 @@ namespace Bind public static string AuxEnumsClass { - get { return GLClass + NestedEnumsClass; } + get { return GLClass + "." + NestedEnumsClass; } } public static string DelegatesClass = "Delegates"; @@ -63,7 +63,8 @@ namespace Bind NoTrimFunctionPrefix = 0x08, NoSeparateFunctionNamespaces = 0x10, TurnVoidPointersToIntPtr = 0x20, - Tao = ConstIntEnums | NoAdvancedEnumProcessing | NoPublicUnsafeFunctions | NoTrimFunctionEnding | NoTrimFunctionPrefix | NoSeparateFunctionNamespaces | TurnVoidPointersToIntPtr, + GenerateAllPermutations = 0x40, + Tao = ConstIntEnums | NoAdvancedEnumProcessing | NoPublicUnsafeFunctions | NoTrimFunctionEnding | NoTrimFunctionPrefix | NoSeparateFunctionNamespaces | TurnVoidPointersToIntPtr | GenerateAllPermutations, } public static string WindowsGDI = "OpenTK.Platform.Windows.API";