print $fh "=item $name\nX<$name>\n$docs";
if ($flags =~ /U/) { # no usage
+ warn("U and s flags are incompatible") if $flags =~ /s/;
# nothing
} else {
- if ($flags =~ /s/) { # semicolon ("dTHR;")
- print $fh "\t\t$name;";
- } elsif ($flags =~ /n/) { # no args
+ if ($flags =~ /n/) { # no args
print $fh "\t$ret\t$name";
} else { # full usage
my $n = "Perl_"x$p . $name;
if ($long_args) { print $fh "\n", substr $indent, 0, -4 }
print $fh ")";
}
+ print $fh ";" if $flags =~ /s/; # semicolon "dTHR;"
print $fh "\n\n";
}
print $fh "=for hackers\nFound in file $file\n\n";
: STATIC is added to declaration;
: embed.h: "#define foo S_foo" entries added
:
+: s autodoc.pl adds a terminating semi-colon to the usage example in the
+: documentation.
+:
: T Has no implicit interpreter/thread context argument:
:
: suppress the pTHX part of "foo(pTHX...)" in proto.h;
=for apidoc Amns||LEAVE
Closing bracket on a callback. See C<L</ENTER>> and L<perlcall>.
-=for apidoc Ams||ENTER_with_name(name)
+=for apidoc Ams||ENTER_with_name|const char * name
Same as C<L</ENTER>>, but when debugging is enabled it also associates the
given literal string with the new scope.
-=for apidoc Ams||LEAVE_with_name(name)
+=for apidoc Ams||LEAVE_with_name|const char * name
Same as C<L</LEAVE>>, but when debugging is enabled it first checks that the
scope has the given name. C<name> must be a literal string.