From b30b9549acaa0ffd4c94c2c50d0756416f9b58ee Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Mon, 22 Jun 2020 10:02:25 -0400 Subject: vlib: debug CLI macro expander, part deux Deal with circular macro definitions instead of crashing due to stack overflow. Separate macro tables, per CLI session Add documentation to the Sphinx docs Type: improvement Signed-off-by: Dave Barach Change-Id: I55fc9152bd37ad0c15fa3959f38b07b63100e634 --- src/vat/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/vat') diff --git a/src/vat/main.c b/src/vat/main.c index a6779c591ce..8a7ed6331f6 100644 --- a/src/vat/main.c +++ b/src/vat/main.c @@ -108,7 +108,9 @@ do_one_file (vat_main_t * vam) this_cmd = (u8 *) clib_macro_eval (&vam->macro_main, (i8 *) vam->inbuf, - 1 /* complain */ ); + 1 /* complain */ , + 0 /* level */ , + 8 /* max_level */ ); if (vam->exec_mode == 0) { -- cgit 1.2.3-korg