Last change
on this file since 147 was
122,
checked in by sz, 11 years ago
|
(c)opyright information added
|
-
Property svn:eol-style set to
native
|
File size:
816 bytes
|
Rev | Line | |
---|
[122] | 1 | // This file is a part of the Framsticks GDK. |
---|
| 2 | // Copyright (C) 2002-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. |
---|
| 3 | // Refer to http://www.framsticks.com/ for further information. |
---|
| 4 | |
---|
[109] | 5 | #include "framsg.h" |
---|
| 6 | #include <common/nonstd_stdio.h> |
---|
| 7 | #include "Convert.h" |
---|
| 8 | |
---|
[122] | 9 | const char* MSG_LEVEL[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"}; |
---|
[109] | 10 | |
---|
| 11 | void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va) |
---|
| 12 | { |
---|
| 13 | char buf[10000]; |
---|
| 14 | vsnprintf(buf,10000,bl,va); |
---|
| 15 | FramMessage(o,m,buf,w); |
---|
| 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.