File: include.h

package info (click to toggle)
seafile 9.0.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,072 kB
  • sloc: ansic: 45,052; python: 6,601; sh: 272; makefile: 268; cpp: 93
file content (35 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35

#include <stdint.h>
#ifndef WIN32
#include <config.h>
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <errno.h>

#include <glib.h>

#include "utils.h"

#ifndef ccnet_warning
  #define ccnet_warning(fmt, ...) g_warning( "%s: " fmt,  __func__ , ##__VA_ARGS__)
#endif

#ifndef ccnet_error
  #define ccnet_error(fmt, ...)   g_error( "%s: " fmt,  __func__ , ##__VA_ARGS__)
#endif

#ifndef ccnet_message
  #define ccnet_message(fmt, ...) g_message(fmt, ##__VA_ARGS__)
#endif

#ifndef ccnet_debug
  #define ccnet_debug(fmt, ...) g_debug(fmt, ##__VA_ARGS__)
#endif


#ifndef ENABLE_DEBUG
#undef g_debug
#define g_debug(...)  
#endif