diff --git a/Source/Bind/GL2/Generator.cs b/Source/Bind/GL2/Generator.cs index 886571f3..069e042f 100644 --- a/Source/Bind/GL2/Generator.cs +++ b/Source/Bind/GL2/Generator.cs @@ -261,6 +261,12 @@ namespace Bind.GL2 c.Reference = words[1]; c.Value = words[2]; } + else + { + // Typical cause is hand-editing the specs and forgetting to add an '=' sign. + throw new InvalidOperationException(String.Format( + "[Error] Invalid constant definition: \"{0}\"", line)); + } //if (!String.IsNullOrEmpty(c.Name) && !e.Members.Contains.Contains(c)) //SpecTranslator.Merge(e.Members, c);