clsync
Loading...
Searching...
No Matches
macros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUGV(...)
 
#define PARANOIDV(...)
 
#define likely(x)   (x)
 
#define unlikely(x)   (x)
 
#define offsetof(a, b)   __builtin_offsetof(a, b)
 
#define TOSTR(a)   # a
 
#define XTOSTR(a)   TOSTR(a)
 
#define COLLECTDELAY_INSTANT   ((unsigned int)~0)
 
#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
 
#define require_strlen_le(str, limit)
 
#define SAFE(code, onfail)
 

Macro Definition Documentation

◆ COLLECTDELAY_INSTANT

#define COLLECTDELAY_INSTANT   ((unsigned int)~0)

Definition at line 47 of file macros.h.

◆ DEBUGV

#define DEBUGV ( ...)

Definition at line 7 of file macros.h.

◆ likely

#define likely ( x)    (x)

Definition at line 26 of file macros.h.

◆ MSG_SECURITY_PROBLEM

#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

Definition at line 50 of file macros.h.

◆ offsetof

#define offsetof ( a,
b )   __builtin_offsetof(a, b)

Definition at line 34 of file macros.h.

◆ PARANOIDV

#define PARANOIDV ( ...)

Definition at line 13 of file macros.h.

◆ require_strlen_le

#define require_strlen_le ( str,
limit )
Value:
if (unlikely( strlen(str) >= limit ))\
critical("length of "TOSTR(str)" (\"%s\") >= "TOSTR(limit));\
#define TOSTR(a)
Definition macros.h:44
#define unlikely(x)
Definition macros.h:29

Definition at line 52 of file macros.h.

◆ SAFE

#define SAFE ( code,
onfail )
Value:
__extension__({\
long _SAFE_rc;\
if (unlikely((_SAFE_rc = code))) {\
error("Got error while "TOSTR(code));\
onfail;\
} \
_SAFE_rc;\
})

Definition at line 56 of file macros.h.

◆ TOSTR

#define TOSTR ( a)    # a

Definition at line 44 of file macros.h.

◆ unlikely

#define unlikely ( x)    (x)

Definition at line 29 of file macros.h.

◆ XTOSTR

#define XTOSTR ( a)    TOSTR(a)

Definition at line 45 of file macros.h.