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(...)
425425 PROTOTYPE : $$
426426 PREINIT :
427427 SV * classname ;
428+ SV * type ;
428429 HV * class_stash ;
429430 struct mro_meta * meta ;
430- PPCODE :
431+ CODE :
431432 if (items != 2 )
432433 croak_xs_usage (cv , "classname , type ");
433-
434- classname = ST (0 );
434+ type = POPs ;
435+ classname = POPs ;
436+ PUTBACK ; /* return empty list */
435437 class_stash = gv_stashsv (classname , GV_ADD );
436438 if (!class_stash ) Perl_croak_nocontext ("Cannot create class : '%" SVf "'!", SVfARG (classname ));
437439 meta = HvMROMETA (class_stash );
438440
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; */
442443
443444void
444445mro_get_mro (...)
You can’t perform that action at this time.
0 commit comments