Skip to content

Commit

Permalink
[pmc] improve Coroutine.init
Browse files Browse the repository at this point in the history
call SUPER
  • Loading branch information
Reini Urban committed Nov 8, 2014
1 parent 868ca2b commit 7f74ed8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/pmc/coroutine.pmc
Expand Up @@ -113,19 +113,13 @@ pmclass Coroutine extends Sub provides invokable auto_attrs {

Initializes the coroutine.

=item C<PMC *clone()>

Clone the coroutine.

=cut

*/

VTABLE void init() {
SET_ATTR_seg(INTERP, SELF, INTERP->code);
SET_ATTR_ctx(INTERP, SELF, PMCNULL);

PObj_custom_mark_destroy_SETALL(SELF);
SUPER();
}


Expand Down

0 comments on commit 7f74ed8

Please sign in to comment.