summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-28 23:18:50 +0100
committerwm4 <wm4@nowhere>2014-11-29 00:03:46 +0100
commit3295caca3d21b20ccab19ab3420d07a139b4f200 (patch)
treeb75ff7040553c889a9e98c84fc862765a148f963 /DOCS
parent9666d48aa332a034d7df72aee320385fb549464d (diff)
downloadmpv-3295caca3d21b20ccab19ab3420d07a139b4f200.tar.bz2
mpv-3295caca3d21b20ccab19ab3420d07a139b4f200.tar.xz
lua: add a function that formats Lua values as strings
Yep, Lua is so crappy that the stdlib doesn't provide anything like this. Repurposes the undocumented mp.format_table() function and moves it to mp.utils.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/lua.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index 3c0d104e40..57c1c35e5d 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -623,6 +623,10 @@ strictly part of the guaranteed API.
trailing text is returned as 3rd return value. (The 3rd return value is
always there, but with ``trail`` set, no error is raised.)
+``utils.to_string(v)``
+ Turn the given value into a string. Formats tables and their contents. This
+ doesn't do anything special; it is only needed because Lua is terrible.
+
Events
------