summaryrefslogtreecommitdiff
blob: 6677c7eef6d908c918f92ac4e12996e1911ee752 (plain)
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
#ifndef _ZoO_PERVASIVE_H_
#define _ZoO_PERVASIVE_H_

#include <string.h>

#define ZoO_SERVER_VERSION    1
#define ZoO_PROTOCOL_VERSION  1

//#define ZoO_RUNNING_FRAMA_C   1

#define ZoO_DEBUG_ALL 1

#ifndef ZoO_DEBUG_ALL
   #define ZoO_DEBUG_ALL 0
#endif

#define ZoO__TO_STRING(x) #x
#define ZoO_TO_STRING(x) ZoO__TO_STRING(x)
#define ZoO_ISOLATE(a) do {a} while (0)

/* strncmp stops at '\0' and strlen does not count '\0'. */
#define ZoO_IS_PREFIX(a, b) (strncmp(a, b, strlen(a)) == 0)

#define ZoO_STRING_EQUALS(a, b) (strcmp(a, b) == 0)

#endif