X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fmacro.h;h=996b7c2ed141b42c4f8ce8ea3ffa4881cf1108c1;hb=e0fa621b8b52da4d95bf5918eb998c9166e4bc7c;hp=b3da60f13e51e926c967c5c07c0222080861a801;hpb=3b63d2d31d0850bd7a81ab9b468218d2c4c461e8;p=elogind.git 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) {