[vlc-commits] lua: Don't expose a "goto" method in lua >= 5.2

Hugo Beauzée-Luyssen git at videolan.org
Thu Mar 30 17:51:09 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Mar 30 17:36:55 2017 +0200| [204f71136666fca02d87b2ec737f9fa19f2e116d] | committer: Hugo Beauzée-Luyssen

lua: Don't expose a "goto" method in lua >= 5.2

It became a reserved keyword

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=204f71136666fca02d87b2ec737f9fa19f2e116d
---

 modules/lua/libs/playlist.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/lua/libs/playlist.c b/modules/lua/libs/playlist.c
index f2085d6..6725ce9 100644
--- a/modules/lua/libs/playlist.c
+++ b/modules/lua/libs/playlist.c
@@ -400,7 +400,9 @@ static const luaL_Reg vlclua_playlist_reg[] = {
     { "repeat_", vlclua_playlist_repeat }, // ... provide repeat_ too.
     { "loop", vlclua_playlist_loop },
     { "random", vlclua_playlist_random },
+#if LUA_VERSION_NUM < 502
     { "goto", vlclua_playlist_gotoitem },
+#endif
     { "gotoitem", vlclua_playlist_gotoitem },
     { "add", vlclua_playlist_add },
     { "enqueue", vlclua_playlist_enqueue },



More information about the vlc-commits mailing list