projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve the argument parser
[project/uci.git]
/
err.h
diff --git
a/err.h
b/err.h
index
82eba81
..
358cadf
100644
(file)
--- a/
err.h
+++ b/
err.h
@@
-41,6
+41,7
@@
* and UCI_TRAP_RESTORE.
*/
#define UCI_HANDLE_ERR(ctx) do { \
* and UCI_TRAP_RESTORE.
*/
#define UCI_HANDLE_ERR(ctx) do { \
+ DPRINTF("ENTER: %s\n", __func__); \
int __val = 0; \
if (!ctx) \
return UCI_ERR_INVAL; \
int __val = 0; \
if (!ctx) \
return UCI_ERR_INVAL; \
@@
-73,6
+74,12
@@
memcpy(ctx->trap, __old_trap, sizeof(ctx->trap)); \
} while(0)
memcpy(ctx->trap, __old_trap, sizeof(ctx->trap)); \
} while(0)
+/**
+ * UCI_INTERNAL: Do an internal call of a public API function
+ *
+ * Sets Exception handling to passthrough mode.
+ * Allows API functions to change behavior compared to public use
+ */
#define UCI_INTERNAL(func, ctx, ...) do { \
ctx->internal = true; \
func(ctx, __VA_ARGS__); \
#define UCI_INTERNAL(func, ctx, ...) do { \
ctx->internal = true; \
func(ctx, __VA_ARGS__); \