7 void __attribute__ ((format (printf, 1, 2))) pb_log(const char *fmt, ...);
8 void __attribute__ ((format (printf, 2, 3))) _pb_log_fn(const char *func,
10 #define pb_log_fn(args...) _pb_log_fn(__func__, args)
12 void __attribute__ ((format (printf, 1, 2))) pb_debug(const char *fmt, ...);
13 void __attribute__ ((format (printf, 2, 3))) _pb_debug_fn(const char *func,
14 const char *fmt, ...);
15 #define pb_debug_fn(args...) _pb_debug_fn(__func__, args)
16 void __attribute__ ((format (printf, 3, 4))) _pb_debug_fl(const char *func,
17 int line, const char *fmt, ...);
18 #define pb_debug_fl(args...) _pb_debug_fl(__func__, __LINE__, args)
20 void __pb_log_init(FILE *stream, bool debug);
23 #define pb_log_init(s) __pb_log_init(s, true)
25 #define pb_log_init(s) __pb_log_init(s, false)
28 void pb_log_set_debug(bool debug);
29 bool pb_log_get_debug(void);
30 FILE *pb_log_get_stream(void);