X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Flib.h;h=e7518defa3d64a30cbcdfe9b39e9a3cbfc1fa21a;hb=c9fb656c941e56824590c15a5159a5ce8596a938;hp=f894d2c4271c3de3ff69082d9c4fcc9a6c6b3576;hpb=69cdec0eb3eff9fcafaacb4b06e43519dfe3a1fb;p=libucw.git diff --git a/ucw/lib.h b/ucw/lib.h index f894d2c4..e7518def 100644 --- a/ucw/lib.h +++ b/ucw/lib.h @@ -59,6 +59,7 @@ #define NONRET __attribute__((noreturn)) /** Function does not return **/ #define UNUSED __attribute__((unused)) /** Variable/parameter is knowingly unused **/ #define CONSTRUCTOR __attribute__((constructor)) /** Call function upon start of program **/ +#define CONSTRUCTOR_WITH_PRIORITY(p) __attribute__((constructor(p))) /** Define constructor with a given priority **/ #define PACKED __attribute__((packed)) /** Structure should be packed **/ #define CONST __attribute__((const)) /** Function depends only on arguments **/ #define PURE __attribute__((pure)) /** Function depends only on arguments and global vars **/