Skip to content
Snippets Groups Projects
Commit eca28d7b authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

defs: add a new WP_PRIVATE_API function annotation

This is to mark private functions that are exposed in public headers.
These functions will not be exported from the library and will
generate a warning when client code is trying to use them.
parent 37134df7
No related branches found
No related tags found
No related merge requests found
...@@ -27,4 +27,12 @@ ...@@ -27,4 +27,12 @@
# endif # endif
#endif #endif
#ifndef WP_PRIVATE_API
# ifdef BUILDING_WP
# define WP_PRIVATE_API
# else
# define WP_PRIVATE_API __attribute__ ((deprecated ("Private API")))
# endif
#endif
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment