Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace #ifndef include guards by #pragma once #2707

Merged
merged 2 commits into from
Dec 13, 2018

Conversation

SunBlack
Copy link
Contributor

Continues #429/#2617. Last time I searched for #include PCL, now I searched just for #ifndef. I just skipped 3rdparty directory (opennurbs/poisson4), because I'm not sure how you handle 3rdParty libraries.

There could be a compile issue, because some macros were multiple times used:

#ifndef OBJECT_RECOGNITION_H_
#define OBJECT_RECOGNITION_H_

#ifndef OBJECT_RECOGNITION_H_
#define OBJECT_RECOGNITION_H_

#ifndef SURFACE_H_
#define SURFACE_H_

#ifndef SURFACE_H_
#define SURFACE_H_

I didn't checked if we can remove solution directory or not, because it seems to be just a copy of parent directory.

@taketwo
Copy link
Member

taketwo commented Dec 12, 2018

Please double-check if the tutorial files that you modified are referenced in tutorial text. If so, code block includes should be adjusted. (See for example this commit: bed8e54.)

@SunBlack
Copy link
Contributor Author

Searched for literalinclude.*\.h and fixed all occurrences.

@taketwo taketwo merged commit c8f8df9 into PointCloudLibrary:master Dec 13, 2018
@taketwo taketwo changed the title Second round replacing #ifndef guards by #pragma once include guards Replace #ifndef include guards by #pragma once Dec 13, 2018
@SunBlack SunBlack deleted the pragma_once branch December 14, 2018 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants