This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regen_perly.pl: print command with -v
[perl5.git] / XSUB.h
diff --git a/XSUB.h b/XSUB.h
index 4548fc9..e64bc83 100644 (file)
--- a/XSUB.h
+++ b/XSUB.h
@@ -327,6 +327,7 @@ Rethrows a previously caught exception.  See L<perlguts/"Exception Handling">.
 #define XSRETURN(off)                                  \
     STMT_START {                                       \
        const IV tmpXSoff = (off);                      \
+       assert(tmpXSoff >= 0);\
        PL_stack_sp = PL_stack_base + ax + (tmpXSoff - 1);      \
        return;                                         \
     } STMT_END