[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: compile-time error line numbers
- From: Mark Hamburg <mhamburg@...>
- Date: Mon, 17 May 2004 10:11:38 -0700
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.