Fix: relayd vs consumerd compatibility
[lttng-tools.git] / src / common / macros.h
index 0e11d3c7ac2f8179ea98bda74293c91158d6b2c2..8ae6535d0de57ed1878bf42b98d37163fadccb49 100644 (file)
@@ -78,6 +78,8 @@ void *zmalloc(size_t len)
 #define LTTNG_HIDDEN __attribute__((visibility("hidden")))
 #endif
 
+#define member_sizeof(type, field)     sizeof(((type *) 0)->field)
+
 /*
  * lttng_strncpy returns 0 on success, or nonzero on failure.
  * It checks that the @src string fits into @dst_len before performing
This page took 0.024663 seconds and 5 git commands to generate.