Monero
Macros | Functions
mtest4.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "lmdb.h"
Include dependency graph for mtest4.c:

Macros

#define E(expr)   CHECK((rc = (expr)) == MDB_SUCCESS, #expr)
 
#define RES(err, expr)   ((rc = expr) == (err) || (CHECK(!rc, #expr), 0))
 
#define CHECK(test, msg)
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   test,
  msg 
)
Value:
((test) ? (void)0 : ((void)fprintf(stderr, \
"%s:%d: %s: %s\n", __FILE__, __LINE__, msg, mdb_strerror(rc)), abort()))
stderr
Definition: compare.py:15
static void abort(int status, const std::string &reason)
Aborts application due with user-defined status.
Definition: easylogging++.cc:121
char * mdb_strerror(int err)
Return a string describing a given error code.
Definition: mdb.c:1703
int test(const char *portListingXml, int portListingXmlLen, const struct port_mapping *ref, int count)
Definition: testportlistingparse.c:26

◆ E

#define E (   expr)    CHECK((rc = (expr)) == MDB_SUCCESS, #expr)

◆ RES

#define RES (   err,
  expr 
)    ((rc = expr) == (err) || (CHECK(!rc, #expr), 0))

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)