summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-30 22:44:06 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-30 22:44:06 +0000
commit67eb4d3079ea11b2f1cbc84fe9afb351bc67715a (patch)
tree0b2f7a053580cfdf7077b899b7a0623ac4eddbd7 /perl.h
parent23579a14417118b3085c688fa8e8359c0d0a93ba (diff)
downloadperl-67eb4d3079ea11b2f1cbc84fe9afb351bc67715a.tar.gz
Marcus Holland-Moritz suggested that assert should
Perl_croak_nocontext rather than Perl_croak. p4raw-id: //depot/perl@26545
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index d4efd902d4..1612020c16 100644
--- a/perl.h
+++ b/perl.h
@@ -3502,7 +3502,7 @@ Gid_t getegid (void);
#ifndef assert /* <assert.h> might have been included somehow */
#define assert(what) PERL_DEB( \
((what) ? ((void) 0) : \
- (Perl_croak(aTHX_ "Assertion %s failed: file \"" __FILE__ \
+ (Perl_croak_nocontext("Assertion %s failed: file \"" __FILE__ \
"\", line %d", STRINGIFY(what), __LINE__), \
PerlProc_exit(1), \
(void) 0)))