ci: Add IDF_DEPRECATED macro for things we only deprecate in our CI passes

This commit is contained in:
Angus Gratton
2019-04-17 16:31:07 +10:00
committed by Angus Gratton
parent 897bb55482
commit b2e54a9cc6
4 changed files with 14 additions and 3 deletions

View File

@@ -84,4 +84,13 @@
#define _COUNTER_STRINGIFY(COUNTER) #COUNTER
/* Use IDF_DEPRECATED attribute to mark anything deprecated from use in
ESP-IDF's own source code, but not deprecated for external users.
*/
#ifdef IDF_CI_BUILD
#define IDF_DEPRECATED(REASON) __attribute__((deprecated(REASON)))
#else
#define IDF_DEPRECATED(REASON)
#endif
#endif /* __ESP_ATTR_H__ */