summaryrefslogtreecommitdiff
blob: ee04b08725b86ee7574ba46162ab7b69e5057cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef RELABSD_PERVASIVE_H
#define RELABSD_PERVASIVE_H

#include <string.h>

#define __TO_STRING(x) #x
#define _TO_STRING(x) __TO_STRING(x)

#define _ISOLATE(a) do {a} while (0)

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

#endif