Changeset 372 for cpp/common/hmessage.h
- Timestamp:
- 04/22/15 04:14:59 (10 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/hmessage.h
r371 r372 3 3 // See LICENSE.txt for details. 4 4 5 #ifndef _ FRAMSG_H_6 #define _ FRAMSG_H_5 #ifndef _HMESSAGE_H_ 6 #define _HMESSAGE_H_ 7 7 8 8 #include <stdarg.h> 9 9 10 extern const char* MSG_LEVEL[];11 #define FRAMSG_FORMAT "%s%s.%s: %s"12 #define FRAMSG_MULTILINE_CONTINUATION "..."10 extern const char* HMSG_LEVEL[]; 11 #define HMSG_FORMAT "%s%s.%s: %s" 12 #define HMSG_MULTILINE_CONTINUATION "..." 13 13 14 void FMprintf(const char *o,const char *m,int w,const char *bl, ...);15 void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va); //a different name than FMprintf - otherwise the compiler could confuse the "string" parameter with va_list and could call the wrong function16 void print FM(const char *bl,...); //a shorthand for printf (a different name again to avoid the risk of confusion with the two functions above. This would be unlikely but possible when the argument types would match)17 void FramMessage(const char *o,const char *m,const char *txt,int w);14 void Hprintf(const char *o,const char *m,int w,const char *bl, ...); 15 void Hprintf_va(const char *o,const char *m,int w,const char *bl,va_list va); //a different name than Hprintf - otherwise the compiler could confuse the "string" parameter with va_list and could call the wrong function 16 void printH(const char *bl,...); //a shorthand for printf (a different name again to avoid the risk of confusion with the two functions above. This would be unlikely but possible when the argument types would match) 17 void Hmessage(const char *o,const char *m,const char *txt,int w); 18 18 19 void _ FramMessageSingleLine(const char *o,const char *m,const char *txt,int w); //don't call this directly - it is used internally19 void _HmessageSingleLine(const char *o,const char *m,const char *txt,int w); //don't call this directly - it is used internally 20 20 21 #define FMLV_DEBUG -122 #define FMLV_INFO 023 #define FMLV_WARN 124 #define FMLV_ERROR 225 #define FMLV_CRITICAL 321 #define HMLV_DEBUG -1 22 #define HMLV_INFO 0 23 #define HMLV_WARN 1 24 #define HMLV_ERROR 2 25 #define HMLV_CRITICAL 3 26 26 27 27 /*
Note: See TracChangeset
for help on using the changeset viewer.