diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-04-25 11:13:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 11:13:46 -0400 |
commit | 29623b59efb75fce62c18a3e22553aadfcccec9c (patch) | |
tree | 9f54fdb69bf4c37e5a6888bab5a4d8f17e9267cd /src/r3.erl | |
parent | d284b72c615bcccaea7d2c48b801a67962ccfe17 (diff) | |
parent | 03425c788c0e1ac38a3172f6c13a42cd1ffa4b4a (diff) |
Merge pull request #1534 from ferd/abuse-undef-functions
Abuse error_handler to get free metacalls in r3
Diffstat (limited to 'src/r3.erl')
-rw-r--r-- | src/r3.erl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2,6 +2,7 @@ %%% calls from a shell. -module(r3). -export([do/1, do/2]). +-export(['$handle_undefined_function'/2]). %% @doc alias for `rebar_agent:do/1' -spec do(atom()) -> ok | {error, term()}. @@ -10,3 +11,7 @@ do(Command) -> rebar_agent:do(Command). %% @doc alias for `rebar_agent:do/2' -spec do(atom(), atom()) -> ok | {error, term()}. do(Namespace, Command) -> rebar_agent:do(Namespace, Command). + +%% @private defer to rebar_agent +'$handle_undefined_function'(Cmd, Args) -> + rebar_agent:'$handle_undefined_function'(Cmd, Args). |