Closed fondesa closed 4 years ago
Python version: 3.7.4 pcpp version: 1.21
If the headers in input have guards or #pragma once, I expected the output to contain #pragma once at the top.
#pragma once
first.hpp
#pragma once namespace First {}
second.hpp
#pragma once namespace Second {}
Command
pcpp first.hpp second.hpp
Actual output
#line 3 "first.hpp" namespace First {} #line 3 "second.hpp" namespace Second {}
Expected output
#pragma once #line 3 "first.hpp" namespace First {} #line 3 "second.hpp" namespace Second {}
If you've told pcpp to not pass through, it'll execute the preprocessor commands and remove them from the output.
Closing due to inactivity
Python version: 3.7.4 pcpp version: 1.21
Description
If the headers in input have guards or
#pragma once
, I expected the output to contain#pragma once
at the top.Example
first.hpp
second.hpp
Command
Actual output
Expected output