summaryrefslogtreecommitdiff
path: root/ldblib.c
Commit message (Collapse)AuthorAgeFilesLines
* Broadening the use of branch hintsRoberto Ierusalimschy2021-02-241-3/+3
| | | | | | More uses of macros 'likely'/'unlikely' (renamed to 'l_likely'/'l_unlikely'), both in range (extended to the libraries) and in scope (extended to hooks, stack growth).
* Bug: cannot allow the call 'debug.getinfo(0, ">")'Roberto Ierusalimschy2021-02-151-0/+1
| | | | | | A 'what' argument starting with '>' indicates that there is a function in the C stack, which won't be there if the first argument is not a function.
* DetailsRoberto Ierusalimschy2020-12-021-2/+2
| | | | Names in the parser and other details that do not change actual code.
* 'lua_upvalueid' returns NULL on invalid upvalue indexRoberto Ierusalimschy2020-10-121-8/+16
|
* Revision of stackless implementationRoberto Ierusalimschy2020-10-121-4/+1
| | | | | | - more organized handling of 'nCcalls' - comments - deprecation of 'setcstacklimit'
* Avoid calling 'fprintf' with NULLRoberto Ierusalimschy2020-06-091-1/+1
| | | | | | Avoid undefined behavior in calls like «fprintf("%s", NULL)». ('lua_writestringerror' is implemented as 'fprintf', and 'lua_tostring' can return NULL if object is not a string.)
* DetailsRoberto Ierusalimschy2020-02-271-2/+2
| | | | | Several details in code (e.g., moving a variable to the most inner scope that encloses its uses), comments, parameter names, extra tests.
* Fixed a warning and other minor issuesRoberto Ierusalimschy2019-10-041-1/+1
| | | | Fixed some minor issues from the feedback for 5.4-beta rc1.
* 'setCstacklimit' renamed to 'setcstacklimit'Roberto Ierusalimschy2019-09-241-3/+3
| | | | Function names in the API use only lowercase letters.
* Added macro 'luaL_pushfail'Roberto Ierusalimschy2019-08-161-6/+8
| | | | | | | | The macro 'luaL_pushfail' documents all places in the standard libraries that return nil to signal some kind of failure. It is defined as 'lua_pushnil'. The manual also got a notation (@fail) to document those returns. The tests were changed to be agnostic regarding whether 'fail' is 'nil' or 'false'.
* Avoid using addresses of static variables as unique keysRoberto Ierusalimschy2019-07-191-10/+8
| | | | | | The addresses of static variables may be different for different instances of Lua, making these instances incompatible if they use these addresses as unique keys in the registry (or other tables).
* New function 'setCstacklimit'Roberto Ierusalimschy2019-06-181-0/+12
| | | | | Added new functions to dynamically set the C-stack limit ('lua_setCstacklimit' in the C-API, 'debug.setCstacklimit' in Lua).
* Added field 'srclen' to structure 'lua_Debug'Roberto Ierusalimschy2019-04-041-1/+2
| | | | | | This new field gets the length of 'source' in the same structure. Unlike the other strings in that structure, 'source' can be relatively large, and Lua already has its length readily available.
* Better error messages for some polymorphic functionsRoberto Ierusalimschy2018-12-101-2/+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.
* 'fTransfer' -> 'ftransfer' / 'nTransfer' -> 'ntransfer'Roberto Ierusalimschy2018-03-161-3/+3
| | | | (keep the standard of names in lower case)
* added casts (warnings in VS)Roberto Ierusalimschy2018-03-051-3/+3
|
* userdata can have multiple user valuesRoberto Ierusalimschy2018-02-201-4/+9
|
* two new fields 'fTransfer'/'nTransfer' in 'lua_Debug' structureRoberto Ierusalimschy2018-02-171-2/+6
| | | | (for information about values being given and returned in function calls)
* details (comments)Roberto Ierusalimschy2015-11-231-3/+3
|
* details (typos in comments)Roberto Ierusalimschy2015-11-191-2/+2
|
* bug: when manipulating other threads, there is no garanties aboutRoberto Ierusalimschy2015-02-191-1/+20
| | | | their stack space
* 'lua_setlocal' should not pop value when failing (to be consistentRoberto Ierusalimschy2015-01-021-2/+7
| | | | with the manual and with 'lua_setupvalue')
* In 'debug.gethook', does not query hook table (which may not exist) ifRoberto Ierusalimschy2014-12-081-6/+8
| | | | there is no hook set
* using address key (light userdata) for hook table, instead ofRoberto Ierusalimschy2014-11-101-12/+12
| | | | string
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'Roberto Ierusalimschy2014-10-291-3/+3
| | | | | moved to 'lauxlib.h' (they do not need to be stable or configurable) + prefixes changed from 'luai_' to 'lua_' (they are not part of the core)
* 'debug.sizeof' removedRoberto Ierusalimschy2014-10-171-29/+1
|
* deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)Roberto Ierusalimschy2014-10-011-10/+12
|
* new option 'p' for 'debug.sizeof' (size of a pointer)Roberto Ierusalimschy2014-08-221-2/+3
|
* 'Csize' -> 'sizeof' + removed its 'b' optionRoberto Ierusalimschy2014-08-211-3/+2
|
* added lots of new comments + small changes in codeRoberto Ierusalimschy2014-05-151-61/+94
|
* debug.numbits replaced by debug.CsizeRoberto Ierusalimschy2014-04-301-11/+25
|
* lua_gettable and similars return type of gotten valueRoberto Ierusalimschy2014-03-121-3/+2
|
* userdata can have any Lua value as uservalueRoberto Ierusalimschy2014-02-191-5/+2
|
* 'debug.subtype' -> 'math.type' (to distinguish integers and floats)Roberto Ierusalimschy2013-07-221-34/+1
|
* 'math.isfloat' replaced by 'debug.subtype'Roberto Ierusalimschy2013-07-101-1/+34
|
* 'numbits' moved from 'math' to 'debug' libraryRoberto Ierusalimschy2013-06-251-1/+14
|
* BUG: coroutine hooks were not collected together with coroutineRoberto Ierusalimschy2012-01-191-7/+14
|
* new functions lua_rawsetp/lua_rawgetpRoberto Ierusalimschy2011-10-241-7/+4
|
* 'luaL_findtable' -> 'luaL_getsubtable'Roberto Ierusalimschy2011-04-081-2/+2
|
* detail (cleaning trailing spaces)Roberto Ierusalimschy2011-01-261-2/+2
|
* using 'luaL_findtable' to manage hook tableRoberto Ierusalimschy2011-01-101-17/+6
|
* 'debug.setmetatable' returns object (like 'setmetatable')Roberto Ierusalimschy2010-12-201-3/+3
|
* 'getuservalue' accepts any type of argumentRoberto Ierusalimschy2010-11-161-11/+8
|
* better error message when light userdata is used instead of aRoberto Ierusalimschy2010-11-101-3/+10
| | | | full userdata
* 'lua_[gs]etenv' -> 'lua_[gs]etuservalue'Roberto Ierusalimschy2010-07-251-7/+7
|
* 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.
* 'getlocal' gets information about parameters of Lua functionsRoberto Ierusalimschy2010-06-211-12/+20
|
* no more fenvs!Roberto Ierusalimschy2010-03-261-11/+11
|