parse: dump option type when using --debug=parse
[fio.git] / compiler / compiler.h
index 20df21d050c3ba7941e705bf51140430dd7b237a..91a988369eccff1576ac60ef5c65c8cb52fb8310 100644 (file)
@@ -69,4 +69,9 @@
 
 #endif
 
 
 #endif
 
+#ifdef FIO_INTERNAL
+#define ARRAY_SIZE(x)    (sizeof((x)) / (sizeof((x)[0])))
+#define FIELD_SIZE(s, f) (sizeof(((typeof(s))0)->f))
+#endif
+
 #endif
 #endif