Also skip #elif lines.
One of these days we may need to get a more aggressive C parser... Change-Id: I7c6a848fb3b7f41083ac70542aa17e971baf10a4 Reviewed-on: https://boringssl-review.googlesource.com/4786 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
6deacb3895
commit
b48042820a
@ -209,7 +209,7 @@ func skipLine(s string) string {
|
||||
}
|
||||
|
||||
func getNameFromDecl(decl string) (string, bool) {
|
||||
for strings.HasPrefix(decl, "#if") {
|
||||
for strings.HasPrefix(decl, "#if") || strings.HasPrefix(decl, "#elif") {
|
||||
decl = skipLine(decl)
|
||||
}
|
||||
if strings.HasPrefix(decl, "struct ") {
|
||||
|
Loading…
Reference in New Issue
Block a user