source: cpp/common/framsg.h @ 113

Last change on this file since 113 was 109, checked in by sz, 10 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: 1.0 KB
Line 
1#ifndef _FRAMSG_H_
2#define _FRAMSG_H_
3
4#include <stdarg.h>
5
6extern char* MSG_LEVEL[];
7
8void FMprintf(const char *o,const char *m,int w,const char *bl, ...);
9void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va);//inna nazwa bo bez tego nie odroznia parametru "string" od va_list i wywoluje zla wersje
10void printFM(const char *bl,...); //dla leniwych - zastepuje printf (zmieniona nazwa chociaz tutaj "prawdopodobienstwo" konfliktu jest niewielkie, musialoby byc wywolanie malego printa z kilkoma parametrami odpowiednich typow zeby niechcacy wywolal sie duzy print)
11void FramMessage(const char *o,const char *m,const char *bl,int w);
12
13#define FMLV_DEBUG -1
14#define FMLV_INFO 0
15#define FMLV_WARN 1
16#define FMLV_ERROR 2
17#define FMLV_CRITICAL 3
18
19/*
20w: weight (importance) of a message
21-1:debugging information, not needed for final users
220: information
231: warning or corrected error
242: uncorrected error. can cause malfunction
253: serious error, causes side effects. user should save what can be saved and restart the application
26*/
27
28#endif
Note: See TracBrowser for help on using the repository browser.