diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-08-11 19:44:04 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-01 18:37:14 -0500 |
| commit | e93f19fb66c491f36e9579ccb83517c1e77a9a29 (patch) | |
| tree | cddb36293c842637f38880af7908e5aa65c44a58 /lib/frrlua.h | |
| parent | 0fe6a43d9040524f6715adaaf8f9d7d7aa28a53e (diff) | |
lib: add Lua stack dumper
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/frrlua.h')
| -rw-r--r-- | lib/frrlua.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/frrlua.h b/lib/frrlua.h index f77842b445..bc017b6441 100644 --- a/lib/frrlua.h +++ b/lib/frrlua.h @@ -74,6 +74,13 @@ int frrlua_table_get_integer(lua_State *L, const char *key); */ void frrlua_export_logging(lua_State *L); +/* + * Dump Lua stack to a string. + * + * Return value must be freed with XFREE(MTYPE_TMP, ...); + */ +char *frrlua_stackdump(lua_State *L); + #ifdef __cplusplus } #endif |
