diff options
author | leaf corcoran <leafot@gmail.com> | 2019-09-21 18:18:27 -0700 |
---|---|---|
committer | leaf <leafot@gmail.com> | 2020-04-25 14:13:42 -0700 |
commit | 3cdf14a8ddd283e9738860359fbdc5ba4e618972 (patch) | |
tree | bfb937b850eae15a65e4e0ac889dabd3f49b6e11 /lua | |
parent | dbfac1a8b2a6e316a6f61d41a1196b4664883a7b (diff) | |
download | lua-cjson-3cdf14a8ddd283e9738860359fbdc5ba4e618972.tar.gz lua-cjson-3cdf14a8ddd283e9738860359fbdc5ba4e618972.tar.bz2 lua-cjson-3cdf14a8ddd283e9738860359fbdc5ba4e618972.zip |
Lua 5.2+ unpack support
Diffstat (limited to 'lua')
-rw-r--r-- | lua/cjson/util.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/cjson/util.lua b/lua/cjson/util.lua index 5d80106..48fa33c 100644 --- a/lua/cjson/util.lua +++ b/lua/cjson/util.lua | |||
@@ -1,5 +1,7 @@ | |||
1 | local json = require "cjson" | 1 | local json = require "cjson" |
2 | 2 | ||
3 | local unpack = unpack or table.unpack | ||
4 | |||
3 | -- Various common routines used by the Lua CJSON package | 5 | -- Various common routines used by the Lua CJSON package |
4 | -- | 6 | -- |
5 | -- Mark Pulford <mark@kyne.com.au> | 7 | -- Mark Pulford <mark@kyne.com.au> |