Hi.
I have installed Visual Micro extension v1810.4.0. After that I have opened an arduino project I had working. This project contains next macro definition
#define buildTube(id) \
Tube tube##id ( ptrValve##id , ptrPressureTransducer##id)
When I have tried to compile it, console output showed an error like:
dl-190.ino: 41:10: error: stray '##' in program
Tube tube##id ( ptrValve##id , ptrPressureTransducer##id)
However, If I delete backslash and define macro in one line
#define buildTube(id) Tube tube##id ( ptrValve##id , ptrPressureTransducer##id)
build works as expected and success is shown at console.
If I try to compile this project with Arduino IDE and VSCode with arduino plugin, build process runs without error.
What could be the reason?
I need the ability to define multiline macro because I have many others bigger.
Thanks and regards.