mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Document variable argument list BIFs using ellipsis
Instead of a single parameter: "va_args: any".
This commit is contained in:
parent
d873acc9e3
commit
08c64112f0
1 changed files with 8 additions and 1 deletions
|
@ -1185,7 +1185,14 @@ void RecordType::DescribeFieldsReST(ODesc* d, bool func_args) const
|
|||
if ( d->FindType(td->type) )
|
||||
d->Add("<recursion>");
|
||||
else
|
||||
td->DescribeReST(d);
|
||||
{
|
||||
if ( num_fields == 1 && streq(td->id, "va_args") &&
|
||||
td->type->Tag() == TYPE_ANY )
|
||||
// This was a BIF using variable argument list
|
||||
d->Add("...");
|
||||
else
|
||||
td->DescribeReST(d);
|
||||
}
|
||||
|
||||
if ( func_args )
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue