diff --git a/docs/Lua API.rst b/docs/Lua API.rst index e9e03debf..a2120d41c 100644 --- a/docs/Lua API.rst +++ b/docs/Lua API.rst @@ -2404,6 +2404,10 @@ environment by the mandatory init file dfhack.lua: If the argument is a lua table or DF object reference, prints all fields. +* ``printall_recurse(obj)`` + + If the argument is a lua table or DF object reference, prints all fields recursively. + * ``copyall(obj)`` Returns a shallow copy of the table or reference as a lua table. diff --git a/docs/changelog.txt b/docs/changelog.txt index 3d8cf862c..48095cf65 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -44,6 +44,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - New functions: - ``Units::isDiplomat(unit)`` +## Lua +- Add ``printall_recurse`` to print tables and DF references recursively. It can be also used with ``^`` from lua interpreter. + ## Internals - jsoncpp: updated to version 1.8.4 and switched to using a git submodule