diff options
author | Mattes D <github@xoft.cz> | 2015-05-11 16:19:01 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-11 16:19:01 +0200 |
commit | 3ddd2f567cfa8ee44c115a8f9449b0ffb5af32ea (patch) | |
tree | 5f4bbeea4ee957d3c80d8c501dc913c9b8cb1e8e /lib/tolua++/src/bin/lua/compat-5.1.lua | |
parent | AllToLua: Removed unneeded virtual method hooks. (diff) | |
download | cuberite-3ddd2f567cfa8ee44c115a8f9449b0ffb5af32ea.tar cuberite-3ddd2f567cfa8ee44c115a8f9449b0ffb5af32ea.tar.gz cuberite-3ddd2f567cfa8ee44c115a8f9449b0ffb5af32ea.tar.bz2 cuberite-3ddd2f567cfa8ee44c115a8f9449b0ffb5af32ea.tar.lz cuberite-3ddd2f567cfa8ee44c115a8f9449b0ffb5af32ea.tar.xz cuberite-3ddd2f567cfa8ee44c115a8f9449b0ffb5af32ea.tar.zst cuberite-3ddd2f567cfa8ee44c115a8f9449b0ffb5af32ea.zip |
Diffstat (limited to 'lib/tolua++/src/bin/lua/compat-5.1.lua')
-rw-r--r-- | lib/tolua++/src/bin/lua/compat-5.1.lua | 8 |
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 + + + + |