1 2 /* message_buffer.h 3 4 This file is in the public domain. 5 */ 6 7 #ifndef MESSAGE_BUFFER_H 8 #define MESSAGE_BUFFER_H 9 10 #define MB_MESSAGE(fmt...) { \ 11 char _m[256]; \ 12 snprintf(_m, 255, fmt); \ 13 add_message(_m); \ 14 } 15 16 void mb_init(const char *prefix); 17 18 void add_message(const char *msg); 19 20 #endif 21