Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Debug information about extra arguments from __call | Roberto Ierusalimschy | 2024-11-19 | 1 | -1/+3 |
| | | | | | | 'debug.getinfo' can return number of extra arguments added to a call by a chain of __call metavalues. That information is being used to improve error messages about errors in these extra arguments. | ||||
* | llimits.h being used by all Lua code | Roberto Ierusalimschy | 2024-06-20 | 1 | -0/+1 |
| | | | | | | The definitions in llimits.h are useful not only for the core. That header only defines types and '#define's, so libs and core still do not share any real code/data. | ||||
* | Removed deprecated function 'setcstacklimit' | Roberto Ierusalimschy | 2024-02-07 | 1 | -9/+0 |
| | |||||
* | Broadening the use of branch hints | Roberto Ierusalimschy | 2021-02-24 | 1 | -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 Ierusalimschy | 2021-02-15 | 1 | -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. | ||||
* | Details | Roberto Ierusalimschy | 2020-12-02 | 1 | -2/+2 |
| | | | | Names in the parser and other details that do not change actual code. | ||||
* | 'lua_upvalueid' returns NULL on invalid upvalue index | Roberto Ierusalimschy | 2020-10-12 | 1 | -8/+16 |
| | |||||
* | Revision of stackless implementation | Roberto Ierusalimschy | 2020-10-12 | 1 | -4/+1 |
| | | | | | | - more organized handling of 'nCcalls' - comments - deprecation of 'setcstacklimit' | ||||
* | Avoid calling 'fprintf' with NULL | Roberto Ierusalimschy | 2020-06-09 | 1 | -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.) | ||||
* | Details | Roberto Ierusalimschy | 2020-02-27 | 1 | -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 issues | Roberto Ierusalimschy | 2019-10-04 | 1 | -1/+1 |
| | | | | Fixed some minor issues from the feedback for 5.4-beta rc1. | ||||
* | 'setCstacklimit' renamed to 'setcstacklimit' | Roberto Ierusalimschy | 2019-09-24 | 1 | -3/+3 |
| | | | | Function names in the API use only lowercase letters. | ||||
* | Added macro 'luaL_pushfail' | Roberto Ierusalimschy | 2019-08-16 | 1 | -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 keys | Roberto Ierusalimschy | 2019-07-19 | 1 | -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 Ierusalimschy | 2019-06-18 | 1 | -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 Ierusalimschy | 2019-04-04 | 1 | -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 functions | Roberto Ierusalimschy | 2018-12-10 | 1 | -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 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. | ||||
* | 'fTransfer' -> 'ftransfer' / 'nTransfer' -> 'ntransfer' | Roberto Ierusalimschy | 2018-03-16 | 1 | -3/+3 |
| | | | | (keep the standard of names in lower case) | ||||
* | added casts (warnings in VS) | Roberto Ierusalimschy | 2018-03-05 | 1 | -3/+3 |
| | |||||
* | userdata can have multiple user values | Roberto Ierusalimschy | 2018-02-20 | 1 | -4/+9 |
| | |||||
* | two new fields 'fTransfer'/'nTransfer' in 'lua_Debug' structure | Roberto Ierusalimschy | 2018-02-17 | 1 | -2/+6 |
| | | | | (for information about values being given and returned in function calls) | ||||
* | details (comments) | Roberto Ierusalimschy | 2015-11-23 | 1 | -3/+3 |
| | |||||
* | details (typos in comments) | Roberto Ierusalimschy | 2015-11-19 | 1 | -2/+2 |
| | |||||
* | bug: when manipulating other threads, there is no garanties about | Roberto Ierusalimschy | 2015-02-19 | 1 | -1/+20 |
| | | | | their stack space | ||||
* | 'lua_setlocal' should not pop value when failing (to be consistent | Roberto Ierusalimschy | 2015-01-02 | 1 | -2/+7 |
| | | | | with the manual and with 'lua_setupvalue') | ||||
* | In 'debug.gethook', does not query hook table (which may not exist) if | Roberto Ierusalimschy | 2014-12-08 | 1 | -6/+8 |
| | | | | there is no hook set | ||||
* | using address key (light userdata) for hook table, instead of | Roberto Ierusalimschy | 2014-11-10 | 1 | -12/+12 |
| | | | | string | ||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -4/+6 |
| | | | | any other header file | ||||
* | definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror' | Roberto Ierusalimschy | 2014-10-29 | 1 | -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' removed | Roberto Ierusalimschy | 2014-10-17 | 1 | -29/+1 |
| | |||||
* | deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.) | Roberto Ierusalimschy | 2014-10-01 | 1 | -10/+12 |
| | |||||
* | new option 'p' for 'debug.sizeof' (size of a pointer) | Roberto Ierusalimschy | 2014-08-22 | 1 | -2/+3 |
| | |||||
* | 'Csize' -> 'sizeof' + removed its 'b' option | Roberto Ierusalimschy | 2014-08-21 | 1 | -3/+2 |
| | |||||
* | added lots of new comments + small changes in code | Roberto Ierusalimschy | 2014-05-15 | 1 | -61/+94 |
| | |||||
* | debug.numbits replaced by debug.Csize | Roberto Ierusalimschy | 2014-04-30 | 1 | -11/+25 |
| | |||||
* | lua_gettable and similars return type of gotten value | Roberto Ierusalimschy | 2014-03-12 | 1 | -3/+2 |
| | |||||
* | userdata can have any Lua value as uservalue | Roberto Ierusalimschy | 2014-02-19 | 1 | -5/+2 |
| | |||||
* | 'debug.subtype' -> 'math.type' (to distinguish integers and floats) | Roberto Ierusalimschy | 2013-07-22 | 1 | -34/+1 |
| | |||||
* | 'math.isfloat' replaced by 'debug.subtype' | Roberto Ierusalimschy | 2013-07-10 | 1 | -1/+34 |
| | |||||
* | 'numbits' moved from 'math' to 'debug' library | Roberto Ierusalimschy | 2013-06-25 | 1 | -1/+14 |
| | |||||
* | BUG: coroutine hooks were not collected together with coroutine | Roberto Ierusalimschy | 2012-01-19 | 1 | -7/+14 |
| | |||||
* | new functions lua_rawsetp/lua_rawgetp | Roberto Ierusalimschy | 2011-10-24 | 1 | -7/+4 |
| | |||||
* | 'luaL_findtable' -> 'luaL_getsubtable' | Roberto Ierusalimschy | 2011-04-08 | 1 | -2/+2 |
| | |||||
* | detail (cleaning trailing spaces) | Roberto Ierusalimschy | 2011-01-26 | 1 | -2/+2 |
| | |||||
* | using 'luaL_findtable' to manage hook table | Roberto Ierusalimschy | 2011-01-10 | 1 | -17/+6 |
| | |||||
* | 'debug.setmetatable' returns object (like 'setmetatable') | Roberto Ierusalimschy | 2010-12-20 | 1 | -3/+3 |
| | |||||
* | 'getuservalue' accepts any type of argument | Roberto Ierusalimschy | 2010-11-16 | 1 | -11/+8 |
| | |||||
* | better error message when light userdata is used instead of a | Roberto Ierusalimschy | 2010-11-10 | 1 | -3/+10 |
| | | | | full userdata | ||||
* | 'lua_[gs]etenv' -> 'lua_[gs]etuservalue' | Roberto Ierusalimschy | 2010-07-25 | 1 | -7/+7 |
| |