I am trying to add a error with the cpp to my source code, to notify who is changing it the string size it too small to handle tha data.
Suppose you have someting like
#define STRING "Hello world"
I want in a successive part of the code to have something like
#if STRING_LENGTH < MAX_STRING_LENGTH
#error "you need to extend the value of MAX_STRING_LENGTH"
#endif
So the question is: how can I define STRING_LENGTH
?