Skip to content
Permalink
Browse files
add trace helper
  • Loading branch information
evanmcc committed Jul 22, 2016
1 parent eb1cd94 commit cd23f9d80c01857c45a842696cbf6fefa7d3d8a3
Showing 1 changed file with 4 additions and 0 deletions.
@@ -470,6 +470,10 @@ validate_pid_specs(PidTerm) ->

validate_tspec(Mod, Fun, Args) when is_function(Args) ->
validate_tspec(Mod, Fun, fun_to_ms(Args));
%% helper to save typing for common actions
validate_tspec(Mod, Fun, trace) ->
validate_tspec(Mod, Fun,
fun_to_ms(fun(_) -> return_trace() end));
validate_tspec(Mod, Fun, Args) ->
BannedMods = ['_', ?MODULE, io, lists],
%% The banned mod check can be bypassed by using

0 comments on commit cd23f9d

Please sign in to comment.