NAT: fixed get_worker_out2in bug (VPP-1116)
[vpp.git] / src / vppinfra / clib.h
index fbb2a21..0d059a0 100644 (file)
 #define CLIB_PACKED(x) x __attribute__ ((packed))
 #define CLIB_UNUSED(x) x __attribute__ ((unused))
 
+/* Make a string from the macro's argument */
+#define CLIB_STRING_MACRO(x) #x
+
+#define __clib_unused __attribute__ ((unused))
+#define __clib_weak __attribute__ ((weak))
+#define __clib_packed __attribute__ ((packed))
+#define __clib_constructor __attribute__ ((constructor))
+
 #define never_inline __attribute__ ((__noinline__))
 
 #if CLIB_DEBUG > 0