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 @@ -418,20 +418,21 @@ mro_set_mro(...)
418
418
PROTOTYPE : $$
419
419
PREINIT :
420
420
SV * classname ;
421
+ SV * type ;
421
422
HV * class_stash ;
422
423
struct mro_meta * meta ;
423
- PPCODE :
424
+ CODE :
424
425
if (items != 2 )
425
426
croak_xs_usage (cv , "classname , type ");
426
-
427
- classname = ST (0 );
427
+ type = POPs ;
428
+ classname = POPs ;
429
+ PUTBACK ; /* return empty list */
428
430
class_stash = gv_stashsv (classname , GV_ADD );
429
431
if (!class_stash ) Perl_croak_nocontext ("Cannot create class : '%" SVf "'!", SVfARG (classname ));
430
432
meta = HvMROMETA (class_stash );
431
433
432
- Perl_mro_set_mro (aTHX_ meta , ST (1 ));
433
-
434
- XSRETURN_EMPTY ;
434
+ Perl_mro_set_mro (aTHX_ meta , type );
435
+ return ; /* skip implied PUTBACK; */
435
436
436
437
void
437
438
mro_get_mro (...)
You can’t perform that action at this time.
0 commit comments