lua-users home
lua-l archive

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


>> [...]
>> Problem is, even when level is 0, lua_getstack returns 0.
>
>What happens with the "default" error hook? Do you get a correct stack
trace? (Because the default hook also uses lua_getstack, starting from
1...)

User error. I'm using multiple lua threads, and I was always using the
primary thread state in the error handler, rather than the state that
actually errored.

Thanks,

Curt