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/vppinfra/macros.h | |
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/vppinfra/macros.h')
-rw-r--r-- | src/vppinfra/macros.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vppinfra/macros.h b/src/vppinfra/macros.h index 54ceda7016b..1b2064add34 100644 --- a/src/vppinfra/macros.h +++ b/src/vppinfra/macros.h @@ -39,7 +39,8 @@ int clib_macro_set_value (clib_macro_main_t * mm, char *name, char *value); void clib_macro_add_builtin (clib_macro_main_t * mm, char *name, void *eval_fn); i8 *clib_macro_get_value (clib_macro_main_t * mm, char *name); -i8 *clib_macro_eval (clib_macro_main_t * mm, i8 * s, i32 complain); +i8 *clib_macro_eval (clib_macro_main_t * mm, i8 * s, i32 complain, + u16 level, u16 max_level); i8 *clib_macro_eval_dollar (clib_macro_main_t * mm, i8 * s, i32 complain); void clib_macro_init (clib_macro_main_t * mm); void clib_macro_free (clib_macro_main_t * mm); |