Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[xbt] Add XBT_ATTRIBUT_DEPRECATED(foo)
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 22 Jun 2016 12:53:18 +0000 (14:53 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 22 Jun 2016 13:02:05 +0000 (15:02 +0200)
include/xbt/base.h

index 9359d53..259c84c 100644 (file)
@@ -47,6 +47,7 @@
 
 # define XBT_ATTRIB_NORETURN __attribute__((__noreturn__))
 # define XBT_ATTRIB_UNUSED  __attribute__((__unused__))
 
 # define XBT_ATTRIB_NORETURN __attribute__((__noreturn__))
 # define XBT_ATTRIB_UNUSED  __attribute__((__unused__))
+# define XBT_ATTRIB_DEPRECATED(m)  __attribute__((__deprecated__(m)))
 
 /* Constructor priorities exist since gcc 4.3.  Apparently, they are however not
  * supported on Macs. */
 
 /* Constructor priorities exist since gcc 4.3.  Apparently, they are however not
  * supported on Macs. */