[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua and light threads
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 20 Oct 2000 13:44:22 -0200
> Isn't the debugging information implicit now? I certainly get line numbers
> when I have errors in my compiled code.
Line numbers are kept in the `lineinfo' array in structure Proto. This
array relates pc indices to line numbers (in a coded way to save space).
When there is an error (or a call to debug information), Lua gets
the current pc of the function and search this array for the
corresponding line number.
-- Roberto