report error on global enum
rather than segfault when running bookmaker cross check, report a parsable error. In a separate CL, I'll add support for global enums. R=herb@google.com Bug: skia:6898 Change-Id: I91c62df5470acbf5c0acf0c558d2d5d3bf48d40e Reviewed-on: https://skia-review.googlesource.com/98682 Commit-Queue: Cary Clark <caryclark@google.com> Reviewed-by: Herb Derby <herb@google.com>
This commit is contained in:
parent
de9cef2f71
commit
e70b9e899c
@ -1231,6 +1231,9 @@ bool IncludeParser::parseDefine() {
|
||||
}
|
||||
|
||||
bool IncludeParser::parseEnum(Definition* child, Definition* markupDef) {
|
||||
if (!markupDef) {
|
||||
return child->reportError<bool>("no support for global enum declaration");
|
||||
}
|
||||
string nameStr;
|
||||
if (child->fTokens.size() > 0) {
|
||||
auto token = child->fTokens.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user