7.1.3.2 DIAG_MSG

#define DIAG_MSG( msg, val, info) DIAG_MSG_EXPAND(msg,val, info)

Used to add compiler messages with macro values and any additional info, such as required linker options given the value of relevant config macros.

MISRA C:2012 Deviation Advisory: misra-c2012-20.10  

Justification: It is generally agreed that the hash and double-hash preprocessor operands must not be used when such macros will affect the behaviour of the compiled code. However, since the these operands are only used to print messages during compilation, in this case, it is deemed safe. Finally, while it is generally not possible to always predict the result of a macro expansion using these operands, the library requires the usage of a specific compiler version in which the functionality is deterministic and thoroughly tested.