Emmanuele Bassi 8a24ad83c9 Add macros for deprecating macros
We want to be able to deprecate macros, but right now the best we can do
is to wrap them with things like:

  #ifndef CLUTTER_DISABLE_DEPRECATED
  # define A_MACRO_I_WANT_TO_DEPRECATE ...
  #endif

Which requires adding a new symbol to the build, and will cause a build
error instead of a compiler/pre-processor warning.

Fortunately, we can use the _Pragma() keyword introduced by C99 and
supported by GCC to add a warning to the output, while leaving the macro
itself intact.

GCC does not have a "deprecated" pragma, so we have to use a generic
warning; this also means we cannot do nifty things like concatenating
strings and the like, as we do for the "deprecated" attribute.

The macro deprecation symbol should have the same affordances as the
function deprecation one, and evaluate to nothing if the required
version is lower than the current version; or if the global toggle for
deprecation warnings is in effect.
2015-07-11 10:18:18 +01:00
..
2014-03-17 23:07:58 +00:00
2014-03-17 23:07:58 +00:00
2014-03-17 23:07:58 +00:00
2014-03-17 23:07:58 +00:00
2014-03-17 19:26:49 +00:00
2014-03-17 23:07:58 +00:00
2014-03-17 23:07:58 +00:00
2015-01-01 15:16:40 +00:00
2014-03-17 23:07:58 +00:00
2015-06-10 12:28:59 +01:00
2014-03-17 23:07:58 +00:00
2015-05-26 19:05:20 +02:00
2014-03-17 23:07:58 +00:00
2015-03-03 17:44:15 +00:00
2014-03-17 23:07:58 +00:00
2014-03-17 18:53:27 +00:00
2014-03-17 23:07:58 +00:00