Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Postprocessing and preprocessing

Header preprocessing

If you need to preprocess header code before the generation, you can create a function that transforms the source code, and store it inside options.srcmlcpp_options.code_preprocess_function

For example:

Loading...

Post-processing of the stub and pydef files

You can also post-process the stub and pydef files, i.e. apply a function that will be called after the code is generated. Below is a very dumb example:

Loading...