Loading...
Searching...
No Matches
Go to the documentation of this file. 1#ifndef __CLSYNC_MACROS_H
2#define __CLSYNC_MACROS_H
5# define DEBUGV(...) __VA_ARGS__
11# define PARANOIDV(...) __VA_ARGS__
13# define PARANOIDV(...)
19# define likely(x) __builtin_expect(!!(x), 1)
22# define unlikely(x) __builtin_expect(!!(x), 0)
29# define unlikely(x) (x)
34# define offsetof(a, b) __builtin_offsetof(a, b)
45#define XTOSTR(a) TOSTR(a)
47#define COLLECTDELAY_INSTANT ((unsigned int)~0)
50#define MSG_SECURITY_PROBLEM(a) "Security problem: "a". Don't use this application until the bug will be fixed. Report about the problem to: "AUTHOR
52#define require_strlen_le(str, limit) \
53 if (unlikely( strlen(str) >= limit ))\
54 critical("length of "TOSTR(str)" (\"%s\") >= "TOSTR(limit));\
56#define SAFE(code, onfail) __extension__({\
58 if (unlikely((_SAFE_rc = code))) {\
59 error("Got error while "TOSTR(code));\