Skip to content

Commit 1377ee4

Browse files
committed
regen/embed.pl: Generate ARGS_ASSERT in more cases
This macro is actually always generated, but is empty if there are no assertions needed. But unntil this commit the code could wrongly create an empty macro. This happened unless at least one of the arguments to the function was marked NN.
1 parent ed07937 commit 1377ee4

File tree

2 files changed

+39
-19
lines changed

2 files changed

+39
-19
lines changed

proto.h

Lines changed: 38 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regen/embed.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ sub generate_proto_h {
359359

360360
if ($args_assert_line) {
361361
$ret .= "\n#${ind}define PERL_ARGS_ASSERT_\U$plain_func\E";
362-
if (@names_of_nn) {
362+
if (@names_of_nn || @typed_args) {
363363
$ret .= " \\\n";
364364

365365
my @asserts;

0 commit comments

Comments
 (0)