X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=err.h;h=2e1e606e7040be3fd97bc9c58d273a117fa91c79;hp=cf428563e960def9a98c2109b67e3e8f93955452;hb=d2c85b2804aaa22e539e266b5ed4cf958d6ceb35;hpb=7952092949fb0dccd126d5ff6f73807feb4211b8 diff --git a/err.h b/err.h index cf42856..2e1e606 100644 --- a/err.h +++ b/err.h @@ -16,7 +16,7 @@ * functions for debug and error handling, for internal use only */ -#ifdef DEBUG +#ifdef UCI_DEBUG #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 - * 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; \