projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup
[project/uci.git]
/
err.h
diff --git
a/err.h
b/err.h
index
cf42856
..
2e1e606
100644
(file)
--- a/
err.h
+++ b/
err.h
@@
-16,7
+16,7
@@
* functions for debug and error handling, for internal use only
*/
* functions for debug and error handling, for internal use only
*/
-#ifdef DEBUG
+#ifdef
UCI_
DEBUG
#define DPRINTF(...) fprintf(stderr, __VA_ARGS__)
#else
#define DPRINTF(...)
#define DPRINTF(...) fprintf(stderr, __VA_ARGS__)
#else
#define DPRINTF(...)
@@
-36,7
+36,8
@@
*
* NB: this does not handle recursion at all. Calling externally visible
* functions from other uci functions is only allowed at the end of the
*
* NB: this does not handle recursion at all. Calling externally visible
* functions from other uci functions is only allowed at the end of the
- * calling function.
+ * calling function, or by wrapping the function call in UCI_TRAP_SAVE
+ * and UCI_TRAP_RESTORE.
*/
#define UCI_HANDLE_ERR(ctx) do { \
int __val; \
*/
#define UCI_HANDLE_ERR(ctx) do { \
int __val; \