diff options
| author | Philipp Janda <siffiejoe@gmx.net> | 2015-04-26 14:39:57 +0200 |
|---|---|---|
| committer | Philipp Janda <siffiejoe@gmx.net> | 2015-04-26 14:39:57 +0200 |
| commit | 46b3056a0996d1bbdf4c1d4baa9f841e2d22299f (patch) | |
| tree | 2070920c99ed7d90a6bea4af13528766928dd3fa /compat53/init.lua | |
| parent | c4a98dafd07ed28e8f05d8771de65ce18ba0bee7 (diff) | |
| download | lua-compat-5.3-46b3056a0996d1bbdf4c1d4baa9f841e2d22299f.tar.gz lua-compat-5.3-46b3056a0996d1bbdf4c1d4baa9f841e2d22299f.tar.bz2 lua-compat-5.3-46b3056a0996d1bbdf4c1d4baa9f841e2d22299f.zip | |
Add nonyieldable xpcall that takes extra arguments.
Although the full-featured yieldable xpcall has been moved to the
compat53 module, the compat53.module module can at least have a version
that takes and passes extra arguments.
Also remove some unnecessary local aliases left over from previous
refactoring.
Diffstat (limited to 'compat53/init.lua')
| -rw-r--r-- | compat53/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat53/init.lua b/compat53/init.lua index e5f7692..e738091 100644 --- a/compat53/init.lua +++ b/compat53/init.lua | |||
| @@ -9,8 +9,8 @@ local lua_version = _VERSION:sub(-3) | |||
| 9 | if lua_version == "5.1" then | 9 | if lua_version == "5.1" then |
| 10 | 10 | ||
| 11 | -- cache globals | 11 | -- cache globals |
| 12 | local error, pcall, rawset, select, setmetatable, tostring, type, unpack, xpcall = | 12 | local error, pcall, rawset, select, setmetatable, tostring, unpack, xpcall = |
| 13 | error, pcall, rawset, select, setmetatable, tostring, type, unpack, xpcall | 13 | error, pcall, rawset, select, setmetatable, tostring, unpack, xpcall |
| 14 | local coroutine, debug, io, package, string = | 14 | local coroutine, debug, io, package, string = |
| 15 | coroutine, debug, io, package, string | 15 | coroutine, debug, io, package, string |
| 16 | local coroutine_create = coroutine.create | 16 | local coroutine_create = coroutine.create |
