Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Multiple errors in '__toclose' report the first one | Roberto Ierusalimschy | 2019-06-05 | 1 | -5/+2 |
| | | | | | | | | When there are multiple errors when closing objects, the error reported by the protected call is the first one, for two reasons: First, other errors may be caused by this one; second, the first error is handled in the original execution context, and therefore has the full traceback. | ||||
* | 'coroutine.kill' renamed 'coroutine.close' | Roberto Ierusalimschy | 2019-06-03 | 1 | -3/+3 |
| | |||||
* | Test for dead coroutine moved to 'lua_resume' | Roberto Ierusalimschy | 2019-05-09 | 1 | -4/+0 |
| | | | | | | The test for dead coroutines done in the 'coro' library was moved to 'lua_resume', in the kernel, which already does other similar tests. | ||||
* | Coroutines do not unwind the stack in case of errors | Roberto Ierusalimschy | 2019-05-09 | 1 | -1/+11 |
| | | | | | | | | | | | Back to how it was, a coroutine does not unwind its stack in case of errors (and therefore do not close its to-be-closed variables). This allows the stack to be examined after the error. The program can use 'coroutine.kill' to close the variables. The function created by 'coroutine.wrap', however, closes the coroutine's variables in case of errors, as it is impossible to examine the stack any way. | ||||
* | Added an optional parameter to 'coroutine.isyieldable' | Roberto Ierusalimschy | 2019-04-10 | 1 | -1/+2 |
| | |||||
* | New functions 'lua_resetthread' and 'coroutine.kill' | Roberto Ierusalimschy | 2018-12-13 | 1 | -12/+46 |
| | | | | | | New functions to reset/kill a thread/coroutine, mainly (only?) to close any pending to-be-closed variable. ('lua_resetthread' also allows a thread to be reused...) | ||||
* | Better error messages for some polymorphic functions | Roberto Ierusalimschy | 2018-12-10 | 1 | -1/+1 |
| | | | | | | | | | New auxiliary functions/macros 'luaL_argexpected'/'luaL_typeerror' ease the creation of error messages such as bad argument #2 to 'setmetatable' (nil or table expected, got boolean) (The novelty being the "got boolean" part...) | ||||
* | Removed extra information from RCS keyword strings | Roberto Ierusalimschy | 2018-08-23 | 1 | -1/+1 |
| | | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept. | ||||
* | new API for 'lua_resume' + cleaning the uses of the 'extra' field in | Roberto Ierusalimschy | 2017-11-02 | 1 | -4/+3 |
| | | | | 'CallInfo' | ||||
* | error handling in 'wrap' does not coerce numbers into string messages | Roberto Ierusalimschy | 2016-04-11 | 1 | -2/+2 |
| | |||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -4/+5 |
| | | | | any other header file | ||||
* | `name' in comments changed to 'name' | Roberto Ierusalimschy | 2014-10-25 | 1 | -2/+2 |
| | |||||
* | detail (error message from 'coroutine.status') | Roberto Ierusalimschy | 2014-09-01 | 1 | -2/+2 |
| | |||||
* | new function 'lua_isyieldable' (and 'coroutine.isyieldable') | Roberto Ierusalimschy | 2014-05-08 | 1 | -5/+17 |
| | |||||
* | added 'return' (when possible) to calls to error functions | Roberto Ierusalimschy | 2013-02-21 | 1 | -2/+2 |
| | |||||
* | wrong error message when 'coroutine.create' or 'coroutine.wrap' are | Roberto Ierusalimschy | 2012-04-27 | 1 | -2/+3 |
| | | | | | called with no arguments (new thread is assumed to be the missing argument). | ||||
* | 'nCcalls' should be local to each thread, as each thread may have its | Roberto Ierusalimschy | 2011-08-23 | 1 | -2/+2 |
| | | | | own C stack (with LuaThreads or something similar) | ||||
* | new module policy: C modules do not create globals and do not register | Roberto Ierusalimschy | 2010-07-02 | 1 | -2/+2 |
| | | | | | | themselves with 'require' (let 'require' do its work); new auxiliary functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref. Old luaL_register will be deprecated. | ||||
* | 'coroutine' library separated from 'baselib' | Roberto Ierusalimschy | 2010-06-10 | 1 | -0/+154 |