Skip to content

Commit

Permalink
Warn about use of deprecated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-clayton committed Jun 3, 2020
1 parent d2e553b commit 1f010ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/marl/deprecated.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@
#endif // MARL_ENABLE_DEPRECATED_SCHEDULER_GETTERS_SETTERS

#ifndef MARL_WARN_DEPRECATED
#define MARL_WARN_DEPRECATED 0
#define MARL_WARN_DEPRECATED 1
#endif // MARL_WARN_DEPRECATED

#if MARL_WARN_DEPRECATED
#if defined(_WIN32)
#define MARL_DEPRECATED(message) __declspec(deprecated(message))
#else
#define MARL_DEPRECATED(message) __attribute__((deprecated(message)))
#endif
#else
#define MARL_DEPRECATED(message)
#endif
Expand Down

0 comments on commit 1f010ca

Please sign in to comment.