PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Macros
util.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TEST_FAILURE(msg)
 
#define EXPECT(x, c)   __builtin_expect((x),(c))
 
#define CHECK(cond)
 
#define DEBUG_CHECK   CHECK
 
#define VERIFY_CHECK(cond)   do { (void)(cond); } while(0)
 
#define SECP256K1_RESTRICT
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   cond)
Value:
do { \
if (EXPECT(!(cond), 0)) { \
TEST_FAILURE("test condition failed: " #cond); \
} \
} while(0)

Definition at line 43 of file util.h.

◆ DEBUG_CHECK

#define DEBUG_CHECK   CHECK

Definition at line 52 of file util.h.

◆ EXPECT

#define EXPECT (   x,
 
)    __builtin_expect((x),(c))

Definition at line 31 of file util.h.

◆ SECP256K1_RESTRICT

#define SECP256K1_RESTRICT

Definition at line 74 of file util.h.

◆ TEST_FAILURE

#define TEST_FAILURE (   msg)
Value:
do { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, msg); \
abort(); \
} while(0)

Definition at line 24 of file util.h.

◆ VERIFY_CHECK

#define VERIFY_CHECK (   cond)    do { (void)(cond); } while(0)

Definition at line 61 of file util.h.

EXPECT
#define EXPECT(x, c)
Definition: util.h:31