[PATCH 3 of 7] Add documentation for printlasterror

Wald Commits scm-commit at wald.intevation.org
Mon Apr 28 19:15:55 CEST 2014


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1398693561 0
# Node ID 5e2af38266f688e7b014acf7496509ec440372dd
# Parent  d1812e171d0ce39ff16a8bd8b45cfa0fa4d4fb90
Add documentation for printlasterror

diff -r d1812e171d0c -r 5e2af38266f6 common/logging.h
--- 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) { \


More information about the Trustbridge-commits mailing list