lua-users home
lua-l archive

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


When a "line executed" event arrives via the debug hook function (
lua_sethook etc.), one of the fields in the lua_Debug structure is
"source", containing filename or entire string.

Are there any lifetime guarantees for this string? Is it safe to keep
only the const char *, not to strcpy the string itself, for each and
every line executed?

Best regards,
Assen