Mercurial > trustbridge
diff common/logging.h @ 513:5e2af38266f6
Add documentation for printlasterror
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 28 Apr 2014 13:59:21 +0000 |
parents | 3cf72c5282e8 |
children | 2a4f7364ab81 |
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) { \