Generating a deprecation warning for macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would like to generate a deprecation warning for macros. In the header file, I would like to have:

#define FOO 127
/* do something with FOO to mark it deprecated */

And in client code which includes the header,

  printf("%d", FOO);

should print a compile-time warning. Is this possible without changing GCC itself?

--
Florian Weimer / Red Hat Product Security Team


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux