Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
more robust curr_func()
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Sep 29, 2009
1 parent 3ef4945 commit 58f2fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pmc/luauserdata.pmc
Expand Up @@ -34,6 +34,7 @@ static PMC* curr_func(PARROT_INTERP) {
PMC *cont;
PMC *current_sub = Parrot_pcc_get_sub(interp, sub_ctx);
if (!PMC_IS_NULL(current_sub)
&& PMC_type(current_sub) == dynpmc_LuaFunction
&& _LuaFunction_get_environment(interp, current_sub))
return current_sub;
cont = Parrot_pcc_get_continuation(interp, sub_ctx);
Expand Down

0 comments on commit 58f2fb2

Please sign in to comment.