S2OPC exports define "QUOTE"
The file src/Common/helpers/sopc_version.h
exports a #define QUOTE
and #define Q
.
This can lead to integration issues with other products (or even user-application) codes, typically, a .c file that include src/Common/helpers/sopc_version.h
will fail to create a variable or function named "Q" or "QUOTE".
All exported symbols/define should (try to) ensure bringing no conflict with user code, and thus must be prefixed using a mangling text.
This may be reworded SOPC_xxx
.
Maybe it also should be renamed more explicitely as it is usually done for C pre-processor string mangling for example:
#define SOPC_STRINGIFY(x) #x
#define SOPC_QUOTE(x) SOPC_STRINGIFY(x)
Edited by Jérémie Chabod