setlinehook

LUA

setlinehook

setlinehook (HOOK)

Sets the function HOOK as the line hook, and returns the old hook. The only argument to the line hook is the line number the interpreter is about to execute.Without arguments, line hooks are turned off.