lua-users home
lua-l archive

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


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.