Skip to content

Commit

Permalink
Add macro name as comment for header guard #endif
Browse files Browse the repository at this point in the history
Change-Id: I948f21f414fc269ad03673636506fa83acf5f5f6
  • Loading branch information
wantehchang committed Aug 23, 2024
1 parent 35b908f commit f00fa3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/make/rtcd.pl
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,14 @@ ()
}

sub common_bottom() {
my $include_guard = uc($opts{sym})."_H_";
print <<EOF;
#ifdef __cplusplus
} // extern "C"
#endif
#endif
#endif // ${include_guard}
EOF
}

Expand Down

0 comments on commit f00fa3c

Please sign in to comment.