Changeset 5109:4f9fc788fe91 in roaraudio for libroar/debug.c


Ignore:
Timestamp:
07/28/11 16:32:34 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Started to use compiler attributes (Also see: #130)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/debug.c

    r4936 r5109  
    6767   ROAR_WARN("%s(*): This function is obsolete. Please use %s(...). %s", func, newfunc, info == NULL ? "" : info); 
    6868  } 
     69 } 
     70} 
     71 
     72void roar_debug_bin_obsolete(const char * progname, const char * newprog, const char * info) { 
     73 if ( info == NULL ) 
     74  info = ""; 
     75 
     76 if ( newprog == NULL ) { 
     77  roar_debug_msg(ROAR_DEBUG_TYPE_ERROR, 0, progname, ROAR_DBG_PREFIX, "This program is obsolete and will be removed soon. %s", info); 
     78 } else { 
     79  roar_debug_msg(ROAR_DEBUG_TYPE_ERROR, 0, progname, ROAR_DBG_PREFIX, "This program is obsolete and will be removed soon. Please use %s. %s", newprog, info); 
    6980 } 
    7081} 
Note: See TracChangeset for help on using the changeset viewer.