Makefile: add -W to produce even stricter warnings
[flog.git] / flog_msg_id.c
blob331e805b2bb8e019277e5fb36b74386a3160dd68
1 //! Flog - Message ID definitions for the F logging library
3 //! @file flog_msg_id.c
4 //! @author Nabeel Sowan (nabeel.sowan@vibes.se)
5 //!
6 //! Useful for saving space on embedded systems, performance etc.
7 //! if FLOG_NO_MSG_ID_STRINGS is defined then the static string
8 //! data will not be included. This can be used for deeply embedded
9 //! systems where string generation isn't strictly necessary,
10 //! and can be decoded by the receiver.
12 #include "flog_msg_id.h"
14 #ifdef FLOG_CONFIG_STRING_OUTPUT
15 #ifdef FLOG_CONFIG_MSG_ID_STRINGS
16 #define X(id, str) str,
17 const char *flog_msg_id_str[] = {
18 FLOG_MSG_IDS
21 #undef X
22 #endif //FLOG_CONFIG_MSG_ID_STRINGS
23 #endif //FLOG_CONFIG_STRING_OUTPUT