diff options
author | Karl Williamson <khw@cpan.org> | 2022-05-12 13:34:58 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-05-19 04:54:57 -0600 |
commit | 7aa7cc795ce2343186811f374b9bfa051092ffc4 (patch) | |
tree | aab83fb4705417ca41dc42f35ed06f27d7552cc8 /deb.c | |
parent | 03c0fc11ed4d6d16bb5dce221c81afc64c5f5b36 (diff) | |
download | perl-7aa7cc795ce2343186811f374b9bfa051092ffc4.tar.gz |
perlapi: Document Perl_deb and kin
Diffstat (limited to 'deb.c')
-rw-r--r-- | deb.c | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -41,6 +41,24 @@ Perl_deb_nocontext(const char *pat, ...) } #endif +/* +=for apidoc deb +=for apidoc_item deb_nocontext + +When perl is compiled with C<-DDEBUGGING>, this prints 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. + +=cut +*/ + void Perl_deb(pTHX_ const char *pat, ...) { @@ -55,6 +73,14 @@ 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) { |