Hello
I have a project where I need to include different files depending on the hardware. The files cannot be combined and differ only in the extension at the end before the file extension, for example
#include "V2.11_M182_K.h"
#include "V2.11_M182_D.h"
Es sind ca. 10 Dateien. Ich würde ungern immer alle Namen von Hand anpassen. Leider geht die einfache Version:
#define NAME "V2.11_M182"
#include NAME "_K.h"
#include NAME "_D.h"
Does anyone have any ideas?
I found already a solution with numbers:
Concatenate string in C #include filename
I was unfortunately not able to rewrite this for two strings.
Stefan