Added setting for legacy overload generation.

This commit is contained in:
the_fiddler 2007-10-26 12:56:03 +00:00
parent 9edbab71de
commit 7beae7311b
2 changed files with 4 additions and 2 deletions

View file

@ -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];

View file

@ -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";