mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 02:05:29 +00:00
Report an error if a constant does not contain either '=' or 'use' in its definition.
This commit is contained in:
parent
fe90b12100
commit
965d101081
|
@ -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