Skip to content

Commit c70e28c

Browse files
committed
perldelta for embed.fnc assert() statements
1 parent c309b84 commit c70e28c

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
@@ -434,6 +434,19 @@ memory saving is unrealistic.
434434
C<sv_vcatpvfn_flags()> now substitutes the Unicode REPLACEMENT CHARACTER
435435
for malformed input. Previously it used the NUL character.
436436

437+
=item *
438+
439+
For core Perl maintainers, the syntax of F<embed.fnc> has been extended.
440+
Every function, C<foo()>, named in this file has generated for it a
441+
macro named C<PERL_ARGS_ASSERT_FOO>. The macro expands to C<assert()>
442+
calls that do basic sanity checking for each argument to C<foo()> that
443+
we currently deem as being appropriate to have such checking. (That
444+
means that many arguments are not checked, and that the generated macro
445+
may currently expand to nothing.) With this release, you can add
446+
C<assert()> statements yourself to F<embed.fnc> that will be
447+
incorporated into the generated macro, beyond the system-generated ones.
448+
Comments and examples in F<embed.fnc> give details.
449+
437450
=back
438451

439452
=head1 Selected Bug Fixes

0 commit comments

Comments
 (0)