File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -425,20 +425,21 @@ mro_set_mro(...)
425
425
PROTOTYPE : $$
426
426
PREINIT :
427
427
SV * classname ;
428
+ SV * type ;
428
429
HV * class_stash ;
429
430
struct mro_meta * meta ;
430
- PPCODE :
431
+ CODE :
431
432
if (items != 2 )
432
433
croak_xs_usage (cv , "classname , type ");
433
-
434
- classname = ST (0 );
434
+ type = POPs ;
435
+ classname = POPs ;
436
+ PUTBACK ; /* return empty list */
435
437
class_stash = gv_stashsv (classname , GV_ADD );
436
438
if (!class_stash ) Perl_croak_nocontext ("Cannot create class : '%" SVf "'!", SVfARG (classname ));
437
439
meta = HvMROMETA (class_stash );
438
440
439
- Perl_mro_set_mro (aTHX_ meta , ST (1 ));
440
-
441
- XSRETURN_EMPTY ;
441
+ Perl_mro_set_mro (aTHX_ meta , type );
442
+ return ; /* skip implied PUTBACK; */
442
443
443
444
void
444
445
mro_get_mro (...)
You can’t perform that action at this time.
0 commit comments