X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmacro.h;h=996b7c2ed141b42c4f8ce8ea3ffa4881cf1108c1;hp=b3da60f13e51e926c967c5c07c0222080861a801;hb=720ce21d444f6497299c4c99a76fda546b06716a;hpb=3b63d2d31d0850bd7a81ab9b468218d2c4c461e8 diff --git a/src/macro.h b/src/macro.h index b3da60f13..996b7c2ed 100644 --- a/src/macro.h +++ b/src/macro.h @@ -45,6 +45,10 @@ #define _public_ __attribute__ ((visibility("default"))) #define _hidden_ __attribute__ ((visibility("hidden"))) #define _weakref_(x) __attribute__((weakref(#x))) +#define _introspect_(x) __attribute__((section("introspect." x))) + +#define XSTRINGIFY(x) #x +#define STRINGIFY(x) XSTRINGIFY(x) /* Rounds up */ static inline size_t ALIGN(size_t l) {