Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 749 Bytes
%% the LOG(T) is from mats.cronqvist(ericsson); shows function name and args
%% use, thusly, e.g. foo(A,B) -> ?LOG([{A,B}]) , blah blah blah .
%-define(debug,1). %% comment out -define(debug,1) to turn it off (*any* debug def turns it on)
% from Joe Armstrong's new book
% c(block, {d, debug}) to turn on TRACE
-define(TRACE(X), io:format("TRACE ~p:~w ~p~n" ,[?MODULE, ?LINE, X])).
-define(SHOWLINENUM, io:fwrite("line ~p~n", [?LINE]), timer:sleep(100)).
-define(TRACE(X), void).
-define(SHOWLINENUM, "").