source: cpp/common/framsg.cpp @ 119

Last change on this file since 119 was 109, checked in by sz, 11 years ago

source reorganization (see README)
new feature added: part/joint shapes (see frams/_demos/part_shapes.cpp)

  • Property svn:eol-style set to native
File size: 601 bytes
Line 
1#include "framsg.h"
2#include <common/nonstd_stdio.h>
3#include "Convert.h"
4
5char* MSG_LEVEL[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"};
6
7void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va)
8{
9        char buf[10000];
10        vsnprintf(buf,10000,bl,va);
11        FramMessage(o,m,buf,w);
12}
13
14void FMprintf(const char *o,const char *m,int w,const char *bl, ...)
15{
16        va_list argptr;
17        va_start(argptr,bl);
18        FMprintf_va(o,m,w,bl,argptr);
19        va_end(argptr);
20}
21
22void printFM(const char *bl,...)
23{
24        va_list argptr;
25        va_start(argptr,bl);
26        FMprintf_va("Message","printf",FMLV_INFO,bl,argptr);
27        va_end(argptr);
28}
Note: See TracBrowser for help on using the repository browser.