Changeset 3856:b2f0925dcc04 in roaraudio
- Timestamp:
- 05/16/10 23:01:02 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/debug.c
r3614 r3856 43 43 struct roar_libroar_config * config = roar_libroar_get_config(); 44 44 45 if ( !roar_libroar_iswarn(config) ) 46 return; 47 45 48 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 57 void 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 ) { 46 64 if ( newfunc == NULL ) { 47 65 ROAR_WARN("%s(*): This function is obsolete. %s", func, info == NULL ? "" : info);
Note: See TracChangeset
for help on using the changeset viewer.