Changeset 3608:47a642518d0b in roaraudio


Ignore:
Timestamp:
03/01/10 01:27:46 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use new STDERR functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/roaraudio.h

    r3566 r3608  
    22 
    33/* 
    4  *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008, 2009 
     4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2010 
    55 * 
    66 *  This file is part of RoarAudio, 
     
    234234 
    235235#ifdef DEBUG 
    236  #define ROAR_DBG(format, args...)  fprintf(ROAR_DEBUG_OUTFH, ROAR_DBG_FULLPREFIX "DEBUG: " format "\n", __LINE__, ## args) 
     236 #define ROAR_DBG(format, args...)  roar_debug_msg_simple(ROAR_DBG_FULLPREFIX "DEBUG: " format "\n", __LINE__, ## args) 
    237237#else 
    238238 #define ROAR_DBG(format, args...) 
    239239#endif 
    240240 
    241 #define ROAR_ERR(format, args...)  fprintf(ROAR_DEBUG_OUTFH, ROAR_DBG_FULLPREFIX "Error: "   format "\n", __LINE__, ## args) 
    242 #define ROAR_WARN(format, args...) fprintf(ROAR_DEBUG_OUTFH, ROAR_DBG_FULLPREFIX "Warning: " format "\n", __LINE__, ## args) 
     241#define ROAR_ERR(format, args...)  roar_debug_msg_simple(ROAR_DBG_FULLPREFIX "Error: "   format "\n", __LINE__, ## args) 
     242#define ROAR_WARN(format, args...) roar_debug_msg_simple(ROAR_DBG_FULLPREFIX "Warning: " format "\n", __LINE__, ## args) 
    243243 
    244244// INFO function: 
    245245#ifdef ROAR_DBG_INFOVAR 
    246  #define ROAR_INFO(format, level, args...) if ( (ROAR_DBG_INFOVAR) >= (level) ) fprintf(ROAR_DEBUG_OUTFH, ROAR_DBG_FULLPREFIX "Info: " format "\n", __LINE__, ## args) 
     246 #define ROAR_INFO(format, level, args...) if ( (ROAR_DBG_INFOVAR) >= (level) ) roar_debug_msg_simple(ROAR_DBG_FULLPREFIX "Info: " format "\n", __LINE__, ## args) 
    247247#else 
    248248 #define ROAR_INFO(format, level, args...) 
Note: See TracChangeset for help on using the changeset viewer.