diff options
author | Dave Barach <dave@barachs.net> | 2020-06-22 10:02:25 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-06-23 15:35:14 +0000 |
commit | b30b9549acaa0ffd4c94c2c50d0756416f9b58ee (patch) | |
tree | 6aa6a41861d1a8383002da298235a992064fd85d /src/vat/main.c | |
parent | cc7209469601a29d0284c50716d876f685868c4b (diff) |
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 <dave@barachs.net>
Change-Id: I55fc9152bd37ad0c15fa3959f38b07b63100e634
Diffstat (limited to 'src/vat/main.c')
-rw-r--r-- | src/vat/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |