From 03f8a04a430823a5252f7392b540e07bb58f8f22 Mon Sep 17 00:00:00 2001 From: Pauli Date: Sat, 30 Jun 2018 22:33:32 +0300 Subject: [PATCH] Document and changelog entry for printall_recurse --- docs/Lua API.rst | 4 ++++ docs/changelog.txt | 3 +++ 2 files changed, 7 insertions(+) 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