std-aux: add _nm_deprecated() macro

This commit is contained in:
Thomas Haller 2021-06-24 10:47:57 +02:00
parent f9040c3cca
commit 2dc5b63508
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -24,6 +24,7 @@
#define _nm_section(s) __attribute__((__section__(s)))
#define _nm_alignof(type) __alignof(type)
#define _nm_alignas(type) _nm_align(_nm_alignof(type))
#define _nm_deprecated(msg) __attribute__((__deprecated__(msg)))
#define nm_auto(fcn) __attribute__((__cleanup__(fcn)))
/* This is required to make LTO working.