summaryrefslogtreecommitdiff
path: root/doc/opts_macro.h
diff options
context:
space:
mode:
Diffstat (limited to 'doc/opts_macro.h')
-rw-r--r--doc/opts_macro.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/opts_macro.h b/doc/opts_macro.h
new file mode 100644
index 0000000..9172802
--- /dev/null
+++ b/doc/opts_macro.h
@@ -0,0 +1,12 @@
+#include "../libbcachefs/opts.h"
+
+/**
+ * generate tables from definitions in opt.h
+ */
+
+#define NULL (null)
+
+FMT_START_SECTION
+#define x(_name, _shortopt, _type, _in_mem_type, _mode, _sb_opt, _desc , _usage)\
+_name;_in_mem_type;_usage;_desc FMT_END_LINE
+BCH_OPTS() FMT_END_SECTION