riak_test/intercepts/intercept.hrl
Ryan Zezeski d284dcfc22 Add intercepts
Intercepts provide the ability to easily and efficiently intercept
function calls.  Giving the ability to change the code being executed
as well as affect local and global state.
2012-12-20 16:14:28 -05:00

4 lines
167 B
Erlang

-define(I_TAG(S), "INTERCEPT: " ++ S).
-define(I_INFO(Msg), error_logger:info_msg(?I_TAG(Msg))).
-define(I_INFO(Msg, Args), error_logger:info_msg(?I_TAG(Msg), Args)).