I’d do this using a helper quoting macro. Something like this will give you what you want:
#define QUOTEME(M) #M
#define INCLUDE_FILE(M) QUOTEME(M##_impl_win.hpp)
#include INCLUDE_FILE(module)
More Related Contents:
- Construct path for #include directive with macro
- Using includes with c++ shared libraries
- What is the difference between #include and #include “filename”?
- C++ #include guards
- Can we have recursive macros?
- Include header files using command line option?
- Is there a __CLASS__ macro in C++?
- What does the Q_OBJECT macro do? Why do all Qt objects need this macro?
- C++ – enum vs. const vs. #define
- Should I include or in C++ programs?
- How to identify platform/compiler from preprocessor macros?
- C++ Header order [closed]
- C/C++, can you #include a file into a string literal? [duplicate]
- Is #pragma once part of the C++11 standard?
- Why do I need double layer of indirection for macros?
- Circular C++ Header Includes
- How to define several include path in Makefile
- Difference between using #include and #include in C++
- What is the difference between a macro and a const in C++?
- When is #include library required in C++?
- Can I redefine a C++ macro then define it back?
- Is the backslash acceptable in C and C++ #include directives?
- How does #include work in C++?
- Function already defined error in C++
- Problem with Macros
- Expand macro inside string literal
- Do you know tool building tree of include files in project\file?
- How can I define a string literal on the GCC command line?
- compiler cannot recognize my class in c++ – cyclic dependency
- How do I implement no-op macro (or template) in C++?