Last change
on this file since 339 was
339,
checked in by Maciej Komosinski, 9 years ago
|
Use #define FRAMSG_FORMAT in stdouterr.cpp
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Rev | Line | |
---|
[286] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
---|
| 2 | // Copyright (C) 1999-2015 Maciej Komosinski and Szymon Ulatowski. |
---|
| 3 | // See LICENSE.txt for details. |
---|
[122] | 4 | |
---|
[109] | 5 | #ifndef _FRAMSG_H_ |
---|
| 6 | #define _FRAMSG_H_ |
---|
| 7 | |
---|
| 8 | #include <stdarg.h> |
---|
| 9 | |
---|
[122] | 10 | extern const char* MSG_LEVEL[]; |
---|
[339] | 11 | #define FRAMSG_FORMAT "[%s] %s.%s: %s" |
---|
[109] | 12 | |
---|
| 13 | void FMprintf(const char *o,const char *m,int w,const char *bl, ...); |
---|
[122] | 14 | 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 function |
---|
| 15 | void printFM(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) |
---|
[244] | 16 | void FramMessage(const char *o,const char *m,const char *txt,int w); |
---|
[109] | 17 | |
---|
[244] | 18 | void _FramMessageSingleLine(const char *o,const char *m,const char *txt,int w); //don't call this directly - it is used internally |
---|
| 19 | |
---|
[109] | 20 | #define FMLV_DEBUG -1 |
---|
| 21 | #define FMLV_INFO 0 |
---|
| 22 | #define FMLV_WARN 1 |
---|
| 23 | #define FMLV_ERROR 2 |
---|
| 24 | #define FMLV_CRITICAL 3 |
---|
| 25 | |
---|
| 26 | /* |
---|
| 27 | w: weight (importance) of a message |
---|
| 28 | -1:debugging information, not needed for final users |
---|
| 29 | 0: information |
---|
| 30 | 1: warning or corrected error |
---|
| 31 | 2: uncorrected error. can cause malfunction |
---|
| 32 | 3: serious error, causes side effects. user should save what can be saved and restart the application |
---|
| 33 | */ |
---|
| 34 | |
---|
| 35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.