From cb414264734fc96f0cde553b8e2ebffddc950c74 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 11 Aug 2009 14:03:55 +0000 Subject: [PATCH] Added EnumPrefix setting, which may be different from ConstantPrefix or FunctionPrefix. Can be used to remove the Gl, Cl, Al, etc prefixes from enum names. --- Source/Bind/Settings.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Bind/Settings.cs b/Source/Bind/Settings.cs index 9bcfdd4b..b4df8fdf 100644 --- a/Source/Bind/Settings.cs +++ b/Source/Bind/Settings.cs @@ -33,6 +33,7 @@ namespace Bind public static string OutputClass = "GL"; // The real output class. Can be set through -class:"xxx". public static string FunctionPrefix = "gl"; public static string ConstantPrefix = "GL_"; + public static string EnumPrefix = ""; // TODO: This code is too fragile. // Old enums code: @@ -124,6 +125,8 @@ namespace Bind NoDropMultipleTokens = 0x200, /// Do not emit inline documentation. NoDocumentation = 0x400, + /// Disables ErrorHelper generation. + NoDebugHelpers = 0x800, Tao = ConstIntEnums | NoAdvancedEnumProcessing | NoPublicUnsafeFunctions | @@ -134,7 +137,8 @@ namespace Bind NestedEnums | NoBoolParameters | NoDropMultipleTokens | - NoDocumentation + NoDocumentation | + NoDebugHelpers /*GenerateAllPermutations,*/ }