aboutsummaryrefslogtreecommitdiff
path: root/lcorolib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* New functions 'lua_resetthread' and 'coroutine.kill'Roberto Ierusalimschy2018-12-131-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 functionsRoberto Ierusalimschy2018-12-101-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 stringsRoberto Ierusalimschy2018-08-231-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 inRoberto Ierusalimschy2017-11-021-4/+3
| | | | 'CallInfo'
* error handling in 'wrap' does not coerce numbers into string messagesRoberto Ierusalimschy2016-04-111-2/+2
|
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+5
| | | | any other header file
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-2/+2
|
* detail (error message from 'coroutine.status')Roberto Ierusalimschy2014-09-011-2/+2
|
* new function 'lua_isyieldable' (and 'coroutine.isyieldable')Roberto Ierusalimschy2014-05-081-5/+17
|
* added 'return' (when possible) to calls to error functionsRoberto Ierusalimschy2013-02-211-2/+2
|
* wrong error message when 'coroutine.create' or 'coroutine.wrap' areRoberto Ierusalimschy2012-04-271-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 itsRoberto Ierusalimschy2011-08-231-2/+2
| | | | own C stack (with LuaThreads or something similar)
* new module policy: C modules do not create globals and do not registerRoberto Ierusalimschy2010-07-021-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 Ierusalimschy2010-06-101-0/+154