Skip to content

Commit

Permalink
Merge pull request #12 from yakaz/fix-luerl_eval-call-with-lua-fun-ref
Browse files Browse the repository at this point in the history
luerl_eval:call/3: Support the 5-elements function tuple
  • Loading branch information
rvirding committed Sep 28, 2012
2 parents 6b0380e + 397a247 commit fe271a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/luerl_eval.erl
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ call({functiondef,L,Ps,B}, Args, St0) ->
{Ret,St2} = functioncall(Func, Args, St1),
%% Should do GC here.
{Ret,St2};
call({function,_,_,_,_}=Func, Args, St0) ->
{Ret,St1} = functioncall(Func, Args, St0),
%% Should do GC here.
{Ret,St1};
call({function,_}=Func, Args, St0) ->
{Ret,St1} = functioncall(Func, Args, St0),
%% Should do GC here.
Expand Down

0 comments on commit fe271a2

Please sign in to comment.