22 #define GET_TOKEN(start, end) \
25 while (QChar::isSpace(*start)) { \
29 for (end = start; *end != '\0' && !QChar::isSpace(*end) && *end != ','; \
56 if ((
static_cast<size_t>(next - capstr) == cap_len)
57 && strncmp(cap, capstr, cap_len) == 0) {
static bool fc_has_capability(const char *cap, const char *capstr, const size_t cap_len)
This routine returns true if the capability in cap appears in the capability list in capstr.
bool has_capability(const char *cap, const char *capstr)
Wrapper for fc_has_capability() for nullptr terminated strings.
#define GET_TOKEN(start, end)
bool has_capabilities(const char *us, const char *them)
This routine returns true if all the mandatory capabilities in us appear in them.
#define fc_assert(condition)
#define fc_assert_ret_val(condition, val)