<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/ldebug.h, branch v5.5.1</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.5.1</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.5.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2025-11-08T14:43:42+00:00</updated>
<entry>
<title>Global initialization checks name conflict</title>
<updated>2025-11-08T14:43:42+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-11-08T14:43:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e44f3a2ffc7ced5e75cca7657aaa60ef27da89aa'/>
<id>urn:sha1:e44f3a2ffc7ced5e75cca7657aaa60ef27da89aa</id>
<content type='text'>
Initialization "global a = 10" raises an error if global 'a' is already
defined, that is, it has a non-nil value.
</content>
</entry>
<entry>
<title>Bug: Call hook may be called twice when count hook yields</title>
<updated>2023-07-25T19:50:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-07-25T19:50:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=1b3f507f620d996ffb69da7476a19251acfb89ca'/>
<id>urn:sha1:1b3f507f620d996ffb69da7476a19251acfb89ca</id>
<content type='text'>
Took the opportunity and moved the code that controls call hooks
in 'luaV_execute' into a function.
</content>
</entry>
<entry>
<title>Stack indices changed to union's</title>
<updated>2022-10-29T15:06:37+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-10-29T15:06:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=413a393e6222482f46599e138bebac162610a572'/>
<id>urn:sha1:413a393e6222482f46599e138bebac162610a572</id>
<content type='text'>
That will allow to change pointers to offsets while reallocating
the stack.
</content>
</entry>
<entry>
<title>Optimization/simplification of 'getbaseline'</title>
<updated>2021-02-02T17:43:55+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-02-02T17:43:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e500892e18e994781760819e33098322728796e8'/>
<id>urn:sha1:e500892e18e994781760819e33098322728796e8</id>
<content type='text'>
By producing absolute line information at regular intervals, a simple
division can compute the correct entry for a given instruction.
</content>
</entry>
<entry>
<title>Optimizations for line hook</title>
<updated>2021-01-28T17:40:29+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-01-28T17:40:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=949187b049ce329c93d6639b91e244f2b208c807'/>
<id>urn:sha1:949187b049ce329c93d6639b91e244f2b208c807</id>
<content type='text'>
The function 'changedline' tries harder to avoid calling
'luaG_getfuncline' plus small changes in the use of 'L-&gt;oldpc'.
</content>
</entry>
<entry>
<title>Better error messages for calling non-callable objects</title>
<updated>2020-12-29T16:15:54+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-12-29T16:15:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=4bd10b6fe81c0a56eb9e01e24fba10e655966870'/>
<id>urn:sha1:4bd10b6fe81c0a56eb9e01e24fba10e655966870</id>
<content type='text'>
When available, use the calling code to find a suitable name for what
was being called; this is particularly useful for errors of non-callable
metamethods. This commit also improved the debug information for
order metamethods.
</content>
</entry>
<entry>
<title>Fixed bug: invalid 'oldpc' when returning to a function</title>
<updated>2020-07-17T14:01:05+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-07-17T14:01:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=a2195644d89812e5b157ce7bac35543e06db05e3'/>
<id>urn:sha1:a2195644d89812e5b157ce7bac35543e06db05e3</id>
<content type='text'>
The field 'L-&gt;oldpc' is not always updated when control returns to a
function; an invalid value can seg. fault when computing 'changedline'.
(One example is an error in a finalizer; control can return to
'luaV_execute' without executing 'luaD_poscall'.) Instead of trying to
fix all possible corner cases, it seems safer to be resilient to invalid
values for 'oldpc'. Valid but wrong values at most cause an extra call
to a line hook.
</content>
</entry>
<entry>
<title>A to-be-closed variable must have a closable value (or be nil)</title>
<updated>2018-11-29T18:02:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2018-11-29T18:02:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=6d04537ea660fd12fc16c328366b701fabaf4919'/>
<id>urn:sha1:6d04537ea660fd12fc16c328366b701fabaf4919</id>
<content type='text'>
It is an error for a to-be-closed variable to have a non-closable
non-nil value when it is being closed. This situation does not seem to
be useful and often hints to an error. (Particularly in the C API, it is
easy to change a to-be-closed index by mistake.)
</content>
</entry>
<entry>
<title>Better error messages for invalid operands in numeric 'for'</title>
<updated>2018-10-30T18:46:56+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2018-10-30T18:46:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e073cbc2e538369e0611abfc9948f301aea6aef3'/>
<id>urn:sha1:e073cbc2e538369e0611abfc9948f301aea6aef3</id>
<content type='text'>
"Better" and similar to error messages for invalid function arguments.
  *old message: 'for' limit must be a number
  *new message: bad 'for' limit (number expected, got table)
</content>
</entry>
<entry>
<title>Removed extra information from RCS keyword strings</title>
<updated>2018-08-23T17:26:12+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2018-08-23T17:26:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=f99509581ee73c1c2dbddb3398e87c098771d31f'/>
<id>urn:sha1:f99509581ee73c1c2dbddb3398e87c098771d31f</id>
<content type='text'>
Version numbers and dates (mostly wrong) from RCS keyword strings
removed from all source files; only the file name are kept.
</content>
</entry>
</feed>
