summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-26 21:46:01 +0200
committerwm4 <wm4@nowhere>2014-05-26 21:59:29 +0200
commit6f20d6b74e247847dcfa36fdab0498f7280ab270 (patch)
treeb72568437e86d8fae94ff16326b31a4551db3131 /DOCS/man
parent9c18a920ff0c5af3ed8868d38081e5ccb4d9ddc1 (diff)
downloadmpv-6f20d6b74e247847dcfa36fdab0498f7280ab270.tar.bz2
mpv-6f20d6b74e247847dcfa36fdab0498f7280ab270.tar.xz
lua: fix compilation with lua 5.2
Commit e2e450f9 started making use of luaL_register(), but OF COURSE this function disappeared in Lua 5.2, and was replaced with a 5.2-only alternative, slightly different mechanism. So just NIH our own function. This is actually slightly more correct, since it forces the user to call "require" to actually make the module visible for builtin C-only modules other than "mp". Fix autoload.lua accordingly.
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/en/lua.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/DOCS/man/en/lua.rst b/DOCS/man/en/lua.rst
index fca158cad7..80467f8f8c 100644
--- a/DOCS/man/en/lua.rst
+++ b/DOCS/man/en/lua.rst
@@ -437,7 +437,7 @@ Example implementation::
optionB = -0.5,
optionC = true,
}
- read_options(options, "myscript")
+ options.read_options(options, "myscript")
print(option.optionA)