]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - ccan/cdump/cdump.h
cdump: features which weren't in genparser
[ccan-lca-2011.git] / ccan / cdump / cdump.h
index 70def6915091ec84a45a5b0f342bed17619128d8..05d5321eec0efe79b26b79d50799871c82ca3173 100644 (file)
  *     };
  */
 #define CDUMP_ZEROTERM
-#endif
+
+/**
+ * CDUMP_IGNORE - annotation for telling cdump_parse to ignore a member.
+ *
+ * This means it won't be bundled (and thus doesn't need to be understood) so
+ * on unbundling it will be all zero.
+ *
+ * Example:
+ *     CDUMP_SAVED struct baz {
+ *             char *p CDUMP_IGNORE;
+ *     };
+ */
+#define CDUMP_IGNORE
+#endif /* CDUMP_PARSING */
 
 struct cdump_desc;