Icons for Radium and Shellplayer.
[AROS-Contrib.git] / MultiMedia / radium / common / debug.c
blob8c41b7bc52fb95e0d8a63ee27b75dcf7e83a7c6b
1 /* This file is at the moment amiga-spesific. This will change. */
5 /* Copyright 2000 Kjetil S. Matheussen
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
22 #include <stdio.h>
23 #include <stdarg.h>
25 #include "debug_proc.h"
29 int dodebug=1;
31 #ifdef TRACKER_DEBUG
33 void debug(const char *fmt, ...){
34 va_list argp;
36 if(dodebug==0) return;
38 va_start(argp,fmt);
39 /* vfprintf(stderr,fmt,argp); */
40 vfprintf(stdout,fmt,argp);
41 va_end(argp);
44 int semaphoreinit=0;
46 void __saveds Pdebug(const char *fmt, ...){
47 va_list argp;
49 if(dodebug==0) return;
51 va_start(argp,fmt);
52 /* vfprintf(stderr,fmt,argp); */
53 vfprintf(stdout,fmt,argp);
55 va_end(argp);
59 #endif
61 #ifndef TRACKER_DEBUG
63 __inline void debug(const char *fmt, ...){
64 return;
67 __inline void Pdebug(const char *fmt, ...){
68 return;
71 #endif