Changeset 3856:b2f0925dcc04 in roaraudio


Ignore:
Timestamp:
05/16/10 23:01:02 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

implemented roar_debug_warn_obsolete_real(), use roar_libroar_iswarn()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/debug.c

    r3614 r3856  
    4343 struct roar_libroar_config * config = roar_libroar_get_config(); 
    4444 
     45 if ( !roar_libroar_iswarn(config) ) 
     46  return; 
     47 
    4548 if ( config->warnings.sysio == ROAR_WARNING_ALWAYS ) { 
     49  if ( newfunc == NULL ) { 
     50   ROAR_WARN("%s(*): This function is obsolete. %s", func, info == NULL ? "" : info); 
     51  } else { 
     52   ROAR_WARN("%s(*): This function is obsolete. Please use %s(...). %s", func, newfunc, info == NULL ? "" : info); 
     53  } 
     54 } 
     55} 
     56 
     57void roar_debug_warn_obsolete_real(char * func, char * newfunc, char * info) { 
     58 struct roar_libroar_config * config = roar_libroar_get_config(); 
     59 
     60 if ( !roar_libroar_iswarn(config) ) 
     61  return; 
     62 
     63 if ( config->warnings.obsolete == ROAR_WARNING_ALWAYS ) { 
    4664  if ( newfunc == NULL ) { 
    4765   ROAR_WARN("%s(*): This function is obsolete. %s", func, info == NULL ? "" : info); 
Note: See TracChangeset for help on using the changeset viewer.