comparison src/flacng/debug.h @ 1246:626f78ff2439

- Add FLAC 1.1.2 compatibility
author sun@fc5-buildsys
date Thu, 12 Jul 2007 19:30:31 +0200
parents 317a7a8c002d
children f1b6f1b2cdb3
comparison
equal deleted inserted replaced
1243:4cf6ccace89c 1246:626f78ff2439
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */ 18 */
19 #ifndef DEBUG_H 19 #ifndef DEBUG_H
20 #define DEBUG_H 20 #define DEBUG_H
21 21
22 #include <stdio.h>
23
22 #define _ENTER _DEBUG("enter") 24 #define _ENTER _DEBUG("enter")
23 #define _LEAVE _DEBUG("leave"); return 25 #define _LEAVE _DEBUG("leave"); return
24 #define _MESSAGE(tag, string, ...) do { fprintf(stderr, "%s: libflacng.so: %s:%d (%s): " string "\n", \ 26 #define _MESSAGE(tag, string, ...) do { fprintf(stderr, "%s: libflacng.so: %s:%d (%s): " string "\n", \
25 tag, __FILE__, __LINE__, __func__, ##__VA_ARGS__); } while(0) 27 tag, __FILE__, __LINE__, __func__, ##__VA_ARGS__); } while(0)
26 28