Changeset 122 for cpp/common/framsg.h
- Timestamp:
- 02/10/14 17:07:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/framsg.h
r109 r122 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 1 5 #ifndef _FRAMSG_H_ 2 6 #define _FRAMSG_H_ … … 4 8 #include <stdarg.h> 5 9 6 extern c har* MSG_LEVEL[];10 extern const char* MSG_LEVEL[]; 7 11 8 12 void FMprintf(const char *o,const char *m,int w,const char *bl, ...); 9 void 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 wersje10 void 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)13 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 14 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) 11 15 void FramMessage(const char *o,const char *m,const char *bl,int w); 12 16
Note: See TracChangeset
for help on using the changeset viewer.