Changeset 2654:8b47593e0e07 in roaraudio


Ignore:
Timestamp:
09/12/09 14:10:14 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added code for roar_debug_warn_sysio_real()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/debug.c

    r2650 r2654  
    3636 
    3737void roar_debug_warn_sysio_real(char * func, char * newfunc, char * info) { 
    38  return -1; 
     38 struct roar_libroar_config * config = roar_libroar_get_config(); 
     39 
     40 if ( config->warnings.sysio == ROAR_WARNING_ALWAYS ) { 
     41  if ( newfunc == NULL ) { 
     42   ROAR_WARN("%s(*): This function is obsolete. %s", func, info == NULL ? "" : info); 
     43  } else { 
     44   ROAR_WARN("%s(*): This function is obsolete. Please use %s(...). %s", func, newfunc, info == NULL ? "" : info); 
     45  } 
     46 } 
    3947} 
    4048 
Note: See TracChangeset for help on using the changeset viewer.