summaryrefslogtreecommitdiffstats
path: root/lib/tolua++
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-12 10:29:55 +0200
committerMattes D <github@xoft.cz>2015-05-12 10:29:55 +0200
commit0686b55901891b837ad099afed2047017be1abba (patch)
tree87f37a195b2bffb3ab62ca214ae4a632dacd07e7 /lib/tolua++
parentFixed creative click-outside (diff)
parentCIBuild: Added action labels (diff)
downloadcuberite-0686b55901891b837ad099afed2047017be1abba.tar
cuberite-0686b55901891b837ad099afed2047017be1abba.tar.gz
cuberite-0686b55901891b837ad099afed2047017be1abba.tar.bz2
cuberite-0686b55901891b837ad099afed2047017be1abba.tar.lz
cuberite-0686b55901891b837ad099afed2047017be1abba.tar.xz
cuberite-0686b55901891b837ad099afed2047017be1abba.tar.zst
cuberite-0686b55901891b837ad099afed2047017be1abba.zip
Diffstat (limited to '')
-rw-r--r--lib/tolua++/src/bin/lua/compat-5.1.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tolua++/src/bin/lua/compat-5.1.lua b/lib/tolua++/src/bin/lua/compat-5.1.lua
index c591592a6..c0a3ec388 100644
--- a/lib/tolua++/src/bin/lua/compat-5.1.lua
+++ b/lib/tolua++/src/bin/lua/compat-5.1.lua
@@ -54,3 +54,11 @@ string.repl = ogsub
+-- Lua 5.2+ and LuaJit don't have string.gfind(). Use string.gmatch() instead:
+if not(string.gfind) then
+ string.gfind = string.gmatch
+end
+
+
+
+