Skip to content

Commit 8973b3a

Browse files
committed
perldelta for embed.fnc assert() statements
1 parent 2a6c846 commit 8973b3a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pod/perldelta.pod

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,19 @@ memory saving is unrealistic.
423423
C<sv_vcatpvfn_flags()> now substitutes the Unicode REPLACEMENT CHARACTER
424424
for malformed input. Previously it used the NUL character.
425425

426+
=item *
427+
428+
For core Perl maintainers, the syntax of F<embed.fnc> has been extended.
429+
Every function, C<foo()>, named in this file has generated for it a
430+
macro named C<PERL_ARGS_ASSERT_FOO>. The macro expands to C<assert()>
431+
calls that do basic sanity checking for each argument to C<foo()> that
432+
we currently deem as being appropriate to have such checking. (That
433+
means that many arguments are not checked, and that the generated macro
434+
may currently expand to nothing.) With this release, you can add
435+
C<assert()> statements yourself to F<embed.fnc> that will be
436+
incorporated into the generated macro, beyond the system-generated ones.
437+
Comments and examples in F<embed.fnc> give details.
438+
426439
=back
427440

428441
=head1 Selected Bug Fixes

0 commit comments

Comments
 (0)