mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Don't use repeated DBG() macros. Instead, wrap everything in a conditional
This commit is contained in:
40
src/funcs.c
40
src/funcs.c
@@ -1312,28 +1312,36 @@ static int FCatch(expr_node *node, Value *locals, Value *ans, int *nonconst)
|
||||
SuppressErrorOutputInCatch = old_suppress;
|
||||
|
||||
if (r == OK) {
|
||||
DBG(PUT(PrintValue(ans, NULL)));
|
||||
DBG(PUT(", ?) => "));
|
||||
DBG(PUT(PrintValue(ans, NULL)));
|
||||
DBG(OUT());
|
||||
if (DebugFlag & DB_PRTEXPR) {
|
||||
PUT(PrintValue(ans, NULL));
|
||||
PUT(", ?) => ");
|
||||
PUT(PrintValue(ans, NULL));
|
||||
OUT();
|
||||
}
|
||||
return r;
|
||||
}
|
||||
DBG(PUT("*"));
|
||||
DBG(PUT(GetErr(r)));
|
||||
DBG(PUT("*, "));
|
||||
if (DebugFlag & DB_PRTEXPR) {
|
||||
PUT("*");
|
||||
PUT(GetErr(r));
|
||||
PUT("*, ");
|
||||
}
|
||||
r = evaluate_expr_node(cur->sibling, locals, ans, nonconst);
|
||||
if (r == OK) {
|
||||
DBG(PUT(PrintValue(ans, NULL)));
|
||||
DBG(PUT(") => "));
|
||||
DBG(PUT(PrintValue(ans, NULL)));
|
||||
DBG(OUT());
|
||||
if (DebugFlag & DB_PRTEXPR) {
|
||||
PUT(PrintValue(ans, NULL));
|
||||
PUT(") => ");
|
||||
PUT(PrintValue(ans, NULL));
|
||||
OUT();
|
||||
}
|
||||
return r;
|
||||
}
|
||||
DBG(PUT("*"));
|
||||
DBG(PUT(GetErr(r)));
|
||||
DBG(PUT("*) => "));
|
||||
DBG(PUT(GetErr(r)));
|
||||
DBG(OUT());
|
||||
if (DebugFlag & DB_PRTEXPR) {
|
||||
PUT("*");
|
||||
PUT(GetErr(r));
|
||||
PUT("*) => ");
|
||||
PUT(GetErr(r));
|
||||
OUT();
|
||||
}
|
||||
return r;
|
||||
}
|
||||
/***************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user