Changeset 5651:b0e163908378 in roaraudio for include
- Timestamp:
- 09/12/12 16:22:42 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/debug.h
r5381 r5651 74 74 struct roar_vio_calls * roar_debug_get_stderr(void); 75 75 76 void roar_debug_msg_simple(const char *format, ...) ;76 void roar_debug_msg_simple(const char *format, ...) _LIBROAR_ATTR_PRINTF(1, 2); 77 77 78 void roar_debug_msg(int type, unsigned long int line, const char * file, const char * prefix, const char * format, ...) ;78 void roar_debug_msg(int type, unsigned long int line, const char * file, const char * prefix, const char * format, ...) _LIBROAR_ATTR_PRINTF(5, 6); 79 79 80 80 #endif -
include/libroar/vio_string.h
r5381 r5651 46 46 char * roar_vio_fgets (struct roar_vio_calls * vio, char * s, size_t size) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 47 47 48 int roar_vio_printf (struct roar_vio_calls * vio, const char *format, ...) _LIBROAR_ATTR_NONNULL(1, 2) ;48 int roar_vio_printf (struct roar_vio_calls * vio, const char *format, ...) _LIBROAR_ATTR_NONNULL(1, 2) _LIBROAR_ATTR_PRINTF(2, 3); 49 49 50 50 #endif -
include/roaraudio/compilerhacks.h
r5381 r5651 38 38 #define _LIBROAR_ATTR_PURE __attribute__ ((pure)) 39 39 #define _LIBROAR_ATTR_USE_RESULT __attribute__ ((warn_unused_result)) 40 #define _LIBROAR_ATTR_PRINTF(str,args) __attribute__ ((format (printf, str, args))) 40 41 41 42 // gcc does not only add a warning on NULL argument for the following … … 67 68 #define _LIBROAR_ATTR_USE_RESULT 68 69 #endif 70 #ifndef _LIBROAR_ATTR_PRINTF 71 #define _LIBROAR_ATTR_PRINTF(str,args) 72 #endif 69 73 70 74 #ifndef _LIBROAR_IGNORE_RET
Note: See TracChangeset
for help on using the changeset viewer.