Skip to content

Commit

Permalink
Merge pull request #24 from uwiger/uw-fix-edoc-compat
Browse files Browse the repository at this point in the history
fix conditional macros in edoc_compat
  • Loading branch information
uwiger committed Jun 4, 2021
2 parents 4504acc + 3d82c35 commit d9be492
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/edoc_compat.hrl
Expand Up @@ -6,11 +6,15 @@
-define(NO_APP, no_app).
-endif.

-ifdef(OTP_RELEASE).
-if(?OTP_RELEASE >= 24).
-define(context, doclet_context).
-else.
%% Pre OTP 24 EDoc
-define(context, context).
-endif. %% NO_APP
-endif. %% OTP_RELEASE >= 24
-else.
-define(context, context).
-endif. %% OTP_RELEASE

-endif. %% __EDOC_COMPAT_HRL__

0 comments on commit d9be492

Please sign in to comment.