aboutsummaryrefslogtreecommitdiff
path: root/compat53/init.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* adjust file metatables even in compat53.module mode (#67)Hisham Muhammad2024-08-291-55/+7
| | | | | * adjust file metatables even in compat53.module mode * apply tweaks only to LuaJIT; file:write() only to compat=none
* Make '*' optional for file:lines() and file:read().Philipp Janda2015-08-241-239/+306
|
* Remove superfluous redefinitions.Philipp Janda2015-08-181-23/+5
| | | | | | | | | By calling the `compat53.module` version of `coroutine.running` from the `compat53` redefinition, the `main_coroutine` value can be reused and the need for the `coroutine.status` and `coroutine.resume` redefinitions vanishes. Thanks @daurnimator!
* Fix warnings emitted by luacheck.v0.2Philipp Janda2015-05-011-2/+2
|
* Choose correct xpcall implementation in compat53 module.Philipp Janda2015-04-261-2/+2
|
* Add nonyieldable xpcall that takes extra arguments.Philipp Janda2015-04-261-2/+2
| | | | | | | | | 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.
* Refactor compat53 and compat53.module Lua modules.Philipp Janda2015-04-251-13/+234
| | | | | | | | | | | | | | | The new compat53.module module contains only changes that don't affect other files, and it is supposed to be used in modules like this: local _ENV = require( "compat53.module" ) if setfenv then setfenv( 1, _ENV ) end compat53.module does not change string/file metatables, and it also doesn't support yielding from (x)pcall. The compat53 module copies all functions from compat53.module to the global environment, and additionally sets string/file metatables and implements yieldable (x)pcall.
* split compat53 Lua module into separate modules that do/don't modify the ↵Philipp Janda2015-04-111-0/+103
global env