source: cpp/gdk/stdouterr.cpp @ 104

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

introducing object de/serialization - see serialtest.cpp
the core GDK classes can be now used in multiple threads (ifdef MULTITHREADED)

  • Property svn:eol-style set to native
File size: 617 bytes
RevLine 
[64]1// This file is a part of the Framsticks GDK library.
[104]2// Copyright (C) 2002-2013  Szymon Ulatowski.  See LICENSE.txt for details.
[64]3// Refer to http://www.framsticks.com/ for further information.
[5]4
5#include "stdouterr.h"
[81]6#ifdef SHP
7#include <FBaseSys.h> //AppLog
8#else
[5]9#include <stdio.h>
[81]10#endif
[5]11
12void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w)
13{
14if (w<-1) w=-1; else if (w>3) w=3;
[81]15#ifdef SHP
[104]16AppLog("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);
[81]17#else
18if (file)
[104]19        file->printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);
[81]20else
[104]21        printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);
[81]22#endif
[5]23}
Note: See TracBrowser for help on using the repository browser.