How to use the pcpp.OutputDirective function in pcpp

To help you get started, we’ve selected a few pcpp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ned14 / pcpp / tests / passthru.py View on Github external
def on_directive_unknown(self,directive,toks,ifpassthru,precedingtoks):
                if directive.value == 'error' or directive.value == 'warning':
                    super(PassThruPreprocessor, self).on_directive_unknown(directive,toks,ifpassthru,precedingtoks)
                # Pass through
                raise OutputDirective()                
github ned14 / pcpp / tests / passthru.py View on Github external
def on_include_not_found(self,is_system_include,curdir,includepath):
                raise OutputDirective()