diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-21 20:57:12 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-21 20:57:12 +0200 |
commit | b95a6d8e0607155b2419e3731b8e4a050183a42c (patch) | |
tree | d3ffdc7f7e2610282e49f332c9b449096bff128a /lualibs-util-tab.lua | |
parent | 260c0a1c6f7e41618d08519c2e5db70409742b37 (diff) | |
download | lualibs-b95a6d8e0607155b2419e3731b8e4a050183a42c.tar.gz |
sync with Context as of 2013-05-21
Diffstat (limited to 'lualibs-util-tab.lua')
-rw-r--r-- | lualibs-util-tab.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualibs-util-tab.lua b/lualibs-util-tab.lua index ecf36b1..a47c0cb 100644 --- a/lualibs-util-tab.lua +++ b/lualibs-util-tab.lua @@ -406,9 +406,9 @@ end -- inspect(table.fastserialize { a = 1, b = { 4, { 5, 6 } }, c = { d = 7, e = 'f"g\nh' } }) -function table.load(filename) +function table.load(filename,loader) if filename then - local t = io.loaddata(filename) + local t = (loader or io.loaddata)(filename) if t and t ~= "" then t = load(t) if type(t) == "function" then |