I happen to have read ArduinoJson/version.hpp, which contains the following macro:
#define ARDUINOJSON_VERSION_MACRO V701
Now, I'm a python dev of very basic acquiantance with C from ctypes(gen).
To me it looks like V701 is an undeclared variable, but this definitely seems intentional.
Can anyone explain to me what is going on? What is the purpose of this and why is the value not in quotes?
It's not used by itself as a value. In Namespace.hpp, you find the use:
Then searching for the definition of
ARDUINO_JSON_CONCAT4you find:So it's eventually used in token pasting, and will become part of the value of
ARDUINOJSON_VERSION_NAMESPACE.