]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/lib.h
Bitops: Implement bit_count()
[libucw.git] / ucw / lib.h
index f894d2c4271c3de3ff69082d9c4fcc9a6c6b3576..e7518defa3d64a30cbcdfe9b39e9a3cbfc1fa21a 100644 (file)
--- 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 **/