@@ -43,10 +43,10 @@ S_mro_get_linear_isa_c3(pTHX_ HV* stash, U32 level)
43
43
stashhek = HvENAME_HEK (stash );
44
44
if (!stashhek ) stashhek = HvNAME_HEK (stash );
45
45
if (!stashhek )
46
- Perl_croak ( aTHX_ "Can't linearize anonymous symbol table" );
46
+ Perl_croak_nocontext ( "Can't linearize anonymous symbol table" );
47
47
48
48
if (level > 100 )
49
- Perl_croak ( aTHX_ "Recursive inheritance detected in package '%" HEKf
49
+ Perl_croak_nocontext ( "Recursive inheritance detected in package '%" HEKf
50
50
"'" ,
51
51
HEKfARG (stashhek ));
52
52
@@ -263,7 +263,7 @@ S_mro_get_linear_isa_c3(pTHX_ HV* stash, U32 level)
263
263
SvREFCNT_dec (retval );
264
264
Safefree (heads );
265
265
266
- Perl_croak ( aTHX_ "%" SVf , SVfARG (errmsg ));
266
+ Perl_croak_nocontext ( "%" SVf , SVfARG (errmsg ));
267
267
}
268
268
}
269
269
}
@@ -323,7 +323,7 @@ mro_get_linear_isa(...)
323
323
else if (items > 1 ) {
324
324
const struct mro_alg * const algo = Perl_mro_get_from_name (aTHX_ ST (1 ));
325
325
if (!algo )
326
- Perl_croak ( aTHX_ "Invalid mro name: '%" SVf "'" , ST (1 ));
326
+ Perl_croak_nocontext ( "Invalid mro name: '%" SVf "'" , ST (1 ));
327
327
RETVAL = algo -> resolve (aTHX_ class_stash , 0 );
328
328
}
329
329
else {
@@ -346,7 +346,7 @@ mro_set_mro(...)
346
346
347
347
classname = ST (0 );
348
348
class_stash = gv_stashsv (classname , GV_ADD );
349
- if (!class_stash ) Perl_croak ( aTHX_ "Cannot create class : '%" SVf "'!", SVfARG (classname ));
349
+ if (!class_stash ) Perl_croak_nocontext ( "Cannot create class : '%" SVf "'!", SVfARG (classname ));
350
350
meta = HvMROMETA (class_stash );
351
351
352
352
Perl_mro_set_mro (aTHX_ meta , ST (1 ));
@@ -496,7 +496,7 @@ mro__nextcan(...)
496
496
497
497
hvname = HvNAME_get (selfstash );
498
498
if (!hvname )
499
- Perl_croak ( aTHX_ "Can 't use anonymous symbol table for method lookup");
499
+ Perl_croak_nocontext ( "Can 't use anonymous symbol table for method lookup");
500
500
501
501
/* This block finds the contextually-enclosing fully-qualified subname,
502
502
much like looking at (caller($i))[3] until you find a real sub that
@@ -509,7 +509,7 @@ mro__nextcan(...)
509
509
/* we may be in a higher stacklevel, so dig down deeper */
510
510
while (cxix < 0 ) {
511
511
if (top_si -> si_type == PERLSI_MAIN )
512
- Perl_croak ( aTHX_ "next::method/next::can/maybe::next::method must be used in method context" );
512
+ Perl_croak_nocontext ( "next::method/next::can/maybe::next::method must be used in method context" );
513
513
top_si = top_si -> si_prev ;
514
514
ccstack = top_si -> si_cxstack ;
515
515
cxix = __dopoptosub_at (ccstack , top_si -> si_cxix );
@@ -548,7 +548,7 @@ mro__nextcan(...)
548
548
subname = strrchr (fq_subname , ':' );
549
549
}
550
550
if (!subname )
551
- Perl_croak ( aTHX_ "next::method/next::can/maybe::next::method cannot find enclosing method" );
551
+ Perl_croak_nocontext ( "next::method/next::can/maybe::next::method cannot find enclosing method" );
552
552
553
553
subname_utf8 = SvUTF8 (sv ) ? 1 : 0 ;
554
554
subname ++ ;
@@ -576,7 +576,7 @@ mro__nextcan(...)
576
576
SV * const val = HeVAL (cache_entry );
577
577
if (val == & PL_sv_undef ) {
578
578
if (throw_nomethod )
579
- Perl_croak ( aTHX_
579
+ Perl_croak_nocontext (
580
580
"No next::method '%" SVf "' found for %" HEKf ,
581
581
SVfARG (newSVpvn_flags (subname , subname_len ,
582
582
SVs_TEMP | ( subname_utf8 ? SVf_UTF8 : 0 ) )),
@@ -658,7 +658,7 @@ mro__nextcan(...)
658
658
659
659
(void )hv_store_ent (nmcache , sv , & PL_sv_undef , 0 );
660
660
if (throw_nomethod )
661
- Perl_croak ( aTHX_ "No next::method '%" SVf "' found for %" HEKf ,
661
+ Perl_croak_nocontext ( "No next::method '%" SVf "' found for %" HEKf ,
662
662
SVfARG (newSVpvn_flags (subname , subname_len ,
663
663
SVs_TEMP | ( subname_utf8 ? SVf_UTF8 : 0 ) )),
664
664
HEKfARG ( HvNAME_HEK (selfstash ) ));
0 commit comments