Last change
on this file since 238 was
197,
checked in by Maciej Komosinski, 11 years ago
|
GDK used by developers since 1999, distributed on the web since 2002
|
-
Property svn:eol-style set to
native
|
File size:
831 bytes
|
Rev | Line | |
---|
[122] | 1 | // This file is a part of the Framsticks GDK. |
---|
[197] | 2 | // Copyright (C) 1999-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. |
---|
[122] | 3 | // Refer to http://www.framsticks.com/ for further information. |
---|
| 4 | |
---|
[109] | 5 | #include "framsg.h" |
---|
| 6 | #include <common/nonstd_stdio.h> |
---|
[180] | 7 | #include "stl-util.h" |
---|
[109] | 8 | #include "Convert.h" |
---|
| 9 | |
---|
[122] | 10 | const char* MSG_LEVEL[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"}; |
---|
[109] | 11 | |
---|
| 12 | void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va) |
---|
| 13 | { |
---|
[180] | 14 | string buf=ssprintf_va(bl,va); |
---|
| 15 | FramMessage(o,m,buf.c_str(),w); |
---|
[109] | 16 | } |
---|
| 17 | |
---|
| 18 | void FMprintf(const char *o,const char *m,int w,const char *bl, ...) |
---|
| 19 | { |
---|
| 20 | va_list argptr; |
---|
| 21 | va_start(argptr,bl); |
---|
| 22 | FMprintf_va(o,m,w,bl,argptr); |
---|
| 23 | va_end(argptr); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | void printFM(const char *bl,...) |
---|
| 27 | { |
---|
| 28 | va_list argptr; |
---|
| 29 | va_start(argptr,bl); |
---|
| 30 | FMprintf_va("Message","printf",FMLV_INFO,bl,argptr); |
---|
| 31 | va_end(argptr); |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.