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

Remove unnecessary extern "C" { ... } wrapping #3

Open
branbick opened this issue May 6, 2022 · 0 comments
Open

Remove unnecessary extern "C" { ... } wrapping #3

branbick opened this issue May 6, 2022 · 0 comments
Labels

Comments

@branbick
Copy link
Owner

branbick commented May 6, 2022

Remove the extern "C" { ... } wrapping (and preceding comment). It's unnecessary because name-mangling is already prevented via preprocessor directives listed in src/init_from_input_file.h itself.

// Prevent the C++ compiler from name-mangling the C code
extern "C" {
#include "../../../src/init_from_input_file.h"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant