-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from paulo-ferraz-oliveira/feature/otp-22+_22…
…-to-27 Update code for the new OTP 22-25 maintenance range
- Loading branch information
Showing
6 changed files
with
60 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
|
||
-ifdef(OTP_RELEASE). | ||
-include_lib("kernel/include/logger.hrl"). | ||
-else. | ||
-define(LOG_ERROR(Str), error_logger:error_msg(Str)). | ||
-define(LOG_ERROR(Format,Data), error_logger:error_msg(Format, Data)). | ||
-define(LOG_INFO(Format,Data), error_logger:info_msg(Format, Data)). | ||
-endif. | ||
|
||
-ifdef(OTP_RELEASE). | ||
-define(WITH_STACKTRACE(T, R, S), T:R:S ->). | ||
-else. | ||
-define(WITH_STACKTRACE(T, R, S), T:R -> S = erlang:get_stacktrace(),). | ||
-endif. | ||
|
||
%% Bloody useful | ||
-define(IF(Test,True,False), case Test of true -> True; false -> False end). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters