ERR: improve doxygen doc

This commit is contained in:
hasufell 2014-06-22 22:23:37 +02:00
parent 8ca155efc0
commit 018e4f68e4
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -30,12 +30,20 @@
#define NTRU_ERR_H #define NTRU_ERR_H
/**
* Print a message to stderr and abort the program.
*/
#define NTRU_ABORT(...) \ #define NTRU_ABORT(...) \
{ \ { \
fprintf(stderr, __VA_ARGS__); \ fprintf(stderr, __VA_ARGS__); \
abort(); \ abort(); \
} }
/**
* Print a message to stderr, giving the
* current file and line and abort the program
* and finally abort the program.
*/
#define NTRU_ABORT_DEBUG(...) \ #define NTRU_ABORT_DEBUG(...) \
{ \ { \
fprintf(stderr, __VA_ARGS__); \ fprintf(stderr, __VA_ARGS__); \
@ -44,11 +52,18 @@
abort(); \ abort(); \
} }
/**
* Print a message to stderr.
*/
#define NTRU_WARN(...) \ #define NTRU_WARN(...) \
{ \ { \
fprintf(stderr, __VA_ARGS__); \ fprintf(stderr, __VA_ARGS__); \
} }
/**
* Print a message to stderr, giving the
* current file and line.
*/
#define NTRU_WARN_DEBUG(...) \ #define NTRU_WARN_DEBUG(...) \
{ \ { \
fprintf(stderr, __VA_ARGS__); \ fprintf(stderr, __VA_ARGS__); \