pdb: make deprecated_since mandatory when deprecated is set.

I believe it is important information and there is no reason for not
setting it.
This commit is contained in:
Jehan 2026-02-02 02:12:10 +01:00
parent b590dc1a2f
commit 651da72b6c

View file

@ -550,6 +550,9 @@ CODE
my $procdesc = ''; my $procdesc = '';
if ($proc->{deprecated}) { if ($proc->{deprecated}) {
if (! $proc->{deprecated_since}) {
die "ERROR: missing 'deprecated_since' variable on $name.\n";
}
$deprecated_since = $proc->{deprecated_since}; $deprecated_since = $proc->{deprecated_since};
if ($proc->{deprecated} eq 'NONE') { if ($proc->{deprecated} eq 'NONE') {
if ($proc->{blurb}) { if ($proc->{blurb}) {