Report an error if a constant does not contain either '=' or 'use' in its definition.

This commit is contained in:
the_fiddler 2009-09-07 17:49:06 +00:00
parent fe90b12100
commit 965d101081

View file

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