Permalink
Browse files

Fix delaying arguments in extended calls.

  • Loading branch information...
1 parent eb89fad commit 4b9cb00894b005cd97805934cdb749fadae7e630 @aartamonau committed Aug 31, 2011
Showing with 6 additions and 1 deletion.
  1. +2 −0 src/ale_transform.erl
  2. +4 −1 tests/test.erl
View
@@ -193,6 +193,8 @@ delay_call(Other) ->
delay_calls([Fmt, {cons, _, _, _} = Args]) ->
[Fmt, map_ast_list(fun delay_call/1, Args)];
+delay_calls([UserData, Fmt, {cons, _, _, _} = Args]) ->
+ [UserData, Fmt, map_ast_list(fun delay_call/1, Args)];
delay_calls(Args) ->
Args.
View
@@ -43,7 +43,10 @@ test() ->
ale:log(info, GetError(), "dynamic message (fn level): ~p", [test]),
ale:log(Info, GetError(), "dynamic message (fn level) 2: ~p", [test]),
ale:log(GetInfo(), GetError(),
- "dynamic message (fn both level and logger: ~p)", [test]).
+ "dynamic message (fn both level and logger: ~p)", [test]),
+
+ ale:xinfo(info, user_data, "test message: ~p", [Fn()]),
+ ale:xerror(info, user_data, "test message: ~p", [Fn()]).
test_perf_loop(0) ->
ok;

0 comments on commit 4b9cb00

Please sign in to comment.