Fabcoin Core  0.16.2
P2P Digital Currency
Classes | 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.

Classes

struct  secp256k1_callback
 

Macros

#define TEST_FAILURE(msg)
 
#define EXPECT(x, c)   (x)
 
#define CHECK(cond)
 
#define VERIFY_CHECK(cond)   do { (void)(cond); } while(0)
 
#define VERIFY_SETUP(stmt)
 
#define SECP256K1_RESTRICT
 
#define I64FORMAT   "lld"
 
#define I64uFORMAT   "llu"
 

Macro Definition Documentation

#define CHECK (   cond)
Value:
do { \
if (EXPECT(!(cond), 0)) { \
TEST_FAILURE("test condition failed: " #cond); \
} \
} while(0)
if(a.IndicesBefore(b, len, lenIndices))
Definition: equihash.cpp:243
#define TEST_FAILURE(msg)
Definition: util.h:33
#define EXPECT(x, c)
Definition: util.h:42

Definition at line 52 of file util.h.

#define EXPECT (   x,
  c 
)    (x)

Definition at line 42 of file util.h.

#define I64FORMAT   "lld"

Definition at line 100 of file util.h.

#define I64uFORMAT   "llu"

Definition at line 101 of file util.h.

#define SECP256K1_RESTRICT

Definition at line 89 of file util.h.

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

Definition at line 33 of file util.h.

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

Definition at line 67 of file util.h.

#define VERIFY_SETUP (   stmt)

Definition at line 68 of file util.h.