MCPcopy Index your code
hub / github.com/python/cpython / preprocess

Method preprocess

Tools/c-analyzer/distutils/ccompiler.py:274–285  ·  view source on GitHub ↗

Preprocess a single C/C++ source file, named in 'source'. Output will be written to file named 'output_file', or stdout if 'output_file' not supplied. 'macros' is a list of macro definitions as for 'compile()', which will augment the macros set with 'define_macro()'

(self, source, output_file=None, macros=None,
                   include_dirs=None, extra_preargs=None, extra_postargs=None)

Source from the content-addressed store, hash-verified

272 # (must be implemented by subclasses)
273
274 def preprocess(self, source, output_file=None, macros=None,
275 include_dirs=None, extra_preargs=None, extra_postargs=None):
276 """Preprocess a single C/C++ source file, named in 'source'.
277 Output will be written to file named 'output_file', or stdout if
278 'output_file' not supplied. 'macros' is a list of macro
279 definitions as for 'compile()', which will augment the macros set
280 with 'define_macro()' and 'undefine_macro()'. 'include_dirs' is a
281 list of directory names that will be added to the default list.
282
283 Raises PreprocessError on failure.
284 """
285 pass
286
287
288 # -- Miscellaneous methods -----------------------------------------

Callers 4

preprocessFunction · 0.45
preprocessFunction · 0.45
preprocessFunction · 0.45
_build_argvFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected