Next: guile-tools display-commentary, Previous: guile-tools c2doc, Up: Miscellaneous Tools
See Init Snarfing, for discussion.
Usage: c2x [-o OUTFILE] [CPP-ARGS ...] Process CPP-ARGS using the C pre-processor and some other programs. Write output to a file named OUTFILE or to the standard output when no OUTFILE has been specified or when OUTFILE is "-". CPP-ARGS should include an input filename. If there are errors during processing, delete OUTFILE and exit with non-zero status. During snarfing, the pre-processor macro SCM_MAGIC_SNARFER is defined. Also, c2x passes "-I GUILE-INCLUDE-DIR" to the pre-processor, where GUILE-INCLUDE-DIR is the directory Guile's header files are installed. (You can display this value with the command "guile-tools guile-config info includedir".) If env var CPP is set, use its value instead of the C pre-processor determined at Guile configure-time. (You can display this value with the command "guile-tools guile-config acsubst CPP".)