Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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()
def on_include_not_found(self,is_system_include,curdir,includepath):
raise OutputDirective()