Report an error if a constant does not contain either '=' or 'use' in its definition.
This commit is contained in:
parent
fe90b12100
commit
965d101081
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue