cdcontainers  0.1.1
Library of data containers and collections for C programming language.
Macros
global.h File Reference
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define CDC_UNUSED(x)   (void)(x)
 
#define CDC_CHECK(X, msg)
 

Macro Definition Documentation

◆ CDC_UNUSED

#define CDC_UNUSED (   x)    (void)(x)

◆ CDC_CHECK

#define CDC_CHECK (   X,
  msg 
)
Value:
do { \
if (X) { \
} else { \
fprintf(stderr, "%s (%s:%d) %s\n", "CHECK(" #X ")", __FILE__, __LINE__, \
msg); \
exit(EXIT_FAILURE); \
} \
} while (false)