diff --git a/cxxheaderparser/gentest.py b/cxxheaderparser/gentest.py index ace24d7..a738298 100644 --- a/cxxheaderparser/gentest.py +++ b/cxxheaderparser/gentest.py @@ -63,7 +63,7 @@ def gentest( popt = "" options = ParserOptions(verbose=verbose) - if options: + if pcpp: options.preprocessor = make_pcpp_preprocessor() maybe_options = "options = ParserOptions(preprocessor=make_pcpp_preprocessor())" popt = ", options=options"