Skip to content

Commit

Permalink
perlapi: Combine vdeb entry with the deb/no_context one
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Sep 15, 2024
1 parent 7b0e03c commit 698a4c0
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions deb.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,20 @@ Perl_deb_nocontext(const char *pat, ...)
/*
=for apidoc deb
=for apidoc_item deb_nocontext
=for apidoc_item vdeb
When perl is compiled with C<-DDEBUGGING>, this prints to STDERR the
When perl is compiled with C<-DDEBUGGING>, these each print to STDERR the
information given by the arguments, prefaced by the name of the file containing
the script causing the call, and the line number within that file.
If the C<v> (verbose) debugging option is in effect, the process id is also
printed.
The two forms differ only in that C<deb_nocontext> does not take a thread
context (C<aTHX>) parameter, so is used in situations where the caller doesn't
already have the thread context.
C<deb> and C<deb_nocontext> differ only in that C<deb_nocontext> does not take
a thread context (C<aTHX>) parameter, so is used in situations where the caller
doesn't already have the thread context.
C<vdeb> is the same as C<deb> except C<args> are an encapsulated argument list.
=cut
*/
Expand All @@ -73,14 +76,6 @@ Perl_deb(pTHX_ const char *pat, ...)
va_end(args);
}

/*
=for apidoc vdeb
This is like C<L</deb>>, but C<args> are an encapsulated argument list.
=cut
*/

void
Perl_vdeb(pTHX_ const char *pat, va_list *args)
{
Expand Down

0 comments on commit 698a4c0

Please sign in to comment.