lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Note that I modified luaX_errorline to build a table purely because I didn't
want to parse the string to recover the error line number. It's already
there in the result provided by the existing code.

Mark

on 5/17/04 9:37 AM, Will Leshner at leshner@ljug.com wrote:

> Luiz Henrique de Figueiredo wrote:
> 
>>> I'm doing luaL_loadbuffer() and I do get errors, but no line numbers.
>> 
>> 
>> That's strange: in case of errors, luaL_loadbuffer() leaves an error message
>> on the stack and this message contains the filename and the line number.
>> 
>> Try printing lua_tostring(L,-1) after luaL_loadbuffer returns an error.
> 
> Ok, I will. Thanks.