Hi. I'm working on updating one of my libraries. I will be deprecating certain functions and will remove them in the future.
Are there any slick preprocessor macros or compiler directives that I can add to the source code so that a warning will be thrown should user code attempt to invoke one of these deprecated (and soon-to-be-removed) functions?
This is a relatively recent advancement so it's possible that not all toolchains will support it. You might check this code used to deprecate the Arduino binary macros:
(but note the waters are a bit muddied there because it also needs to check for the standard versions that have binary literals and deprecated enums.