Skip to content

Commit

Permalink
[meta] Add sai_status_t to ancestry check (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored Jun 20, 2022
1 parent a3cad91 commit 09b7540
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meta/ancestry.pl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ sub ProcessSingleHeader
next;
}

if ($line =~ /#define\s+(SAI_STATUS_\w+)\s*SAI_STATUS_CODE\(($NUMBER_REGEX)L\)/)
{
push @{ $SAI_ENUMS{sai_status_t}->{values} }, $1;
push @{ $SAI_ENUMS{sai_status_t}->{inits} }, lc("= $2");
}

if ($line =~ /^\s*typedef\s+enum\s+_((sai_\w+_)t)/)
{
$currentEnum = $1;
Expand Down

0 comments on commit 09b7540

Please sign in to comment.