File: libyahoo-debug.h

package info (click to toggle)
libyahoo 0.18.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 900 kB
  • ctags: 361
  • sloc: sh: 6,708; ansic: 4,227; makefile: 84; perl: 53
file content (29 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Prototypes for debugging routines
 */
#if !defined(LIBYAHOO_DEBUG_H)
#define LIBYAHOO_DEBUG_H

#if defined(ENABLE_DEBUG)
int yahoo_dbg_Open(const char *file);
int yahoo_dbg_Disable(const char *key);
int yahoo_dbg_Enable(const char *key);
int yahoo_dbg_Print(const char *key, char *format, ...);
int yahoo_dbg_Close(void);
int yahoo_dbg_IsEnabled(char *key);

#else
inline int yahoo_dbg_Open(const char *file);
inline int yahoo_dbg_Disable(const char *key);
inline int yahoo_dbg_Enable(const char *key);
inline int yahoo_dbg_Print(const char *key, char *format, ...);
inline int yahoo_dbg_Close(void);
inline int yahoo_dbg_IsEnabled(const char *key);

#endif

char *yahoo_unraw_buffer(char *buffer, unsigned int len);

#define yahoo_dbg_NullCheck(x) ((x)?(x):("[NULL]"))

#endif