Mercurial > trustbridge
changeset 513:5e2af38266f6
Add documentation for printlasterror
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 28 Apr 2014 13:59:21 +0000 |
parents | d1812e171d0c |
children | ce8325686b09 |
files | common/logging.h |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/common/logging.h Mon Apr 28 10:44:20 2014 +0000 +++ b/common/logging.h Mon Apr 28 13:59:21 2014 +0000 @@ -93,6 +93,12 @@ # define ERRORPRINTF(fmt, ...) fprintf(stderr, DEBUGPREFIX "ERROR: " fmt, ##__VA_ARGS__); #endif +/** + * @def PRINTLASTERROR(msg) + * @brief Prints the last windows error with a custom message + * + * Prints an error to stderr + */ #define PRINTLASTERROR(msg) \ char *my_error = getLastErrorMsg(); \ if (my_error) { \