Last change
on this file since 132 was
121,
checked in by sz, 11 years ago
|
updated file headers and makefiles
|
-
Property svn:eol-style set to
native
|
File size:
631 bytes
|
Rev | Line | |
---|
[121] | 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. |
---|
[109] | 3 | // Refer to http://www.framsticks.com/ for further information. |
---|
| 4 | |
---|
| 5 | #include "stdouterr.h" |
---|
| 6 | #ifdef SHP |
---|
| 7 | #include <FBaseSys.h> //AppLog |
---|
| 8 | #else |
---|
| 9 | #include <stdio.h> |
---|
| 10 | #endif |
---|
| 11 | |
---|
| 12 | void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w) |
---|
| 13 | { |
---|
| 14 | if (w<-1) w=-1; else if (w>3) w=3; |
---|
| 15 | #ifdef SHP |
---|
| 16 | AppLog("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl); |
---|
| 17 | #else |
---|
| 18 | if (file) |
---|
| 19 | file->printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl); |
---|
| 20 | else |
---|
| 21 | printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl); |
---|
| 22 | #endif |
---|
| 23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.