libnfc  1.7.0-rc7
Macros
nfc-utils.h File Reference

Provide some examples shared functions like print, parity calculation, options parsing. More...

#include <stdlib.h>
#include <string.h>
#include <err.h>

Go to the source code of this file.

Macros

#define DBG(...)   {}
 Print a message of standard output only in DEBUG mode. More...
 
#define WARN(...)   warnx ("WARNING: " __VA_ARGS__ )
 Print a warn message. More...
 
#define ERR(...)   warnx ("ERROR: " __VA_ARGS__ )
 Print a error message. More...
 

Detailed Description

Provide some examples shared functions like print, parity calculation, options parsing.

Definition in file nfc-utils.h.

Macro Definition Documentation

#define DBG (   ...)    {}

Print a message of standard output only in DEBUG mode.

DBG

Definition at line 58 of file nfc-utils.h.

#define ERR (   ...)    warnx ("ERROR: " __VA_ARGS__ )

Print a error message.

ERR

Definition at line 84 of file nfc-utils.h.

#define WARN (   ...)    warnx ("WARNING: " __VA_ARGS__ )

Print a warn message.

WARN

Definition at line 71 of file nfc-utils.h.