lua-users home
lua-l archive

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


Mike Pall wrote:
Hi,

Eero Pajarre wrote:
The problem is in line

  local w = debug.getinfo(2, "S").what

where debug.getinfo returns nil

Fix:

  local d = debug.getinfo(2, "S")
  local w = d and d.what or "C"


Thanks, this seems to solve my problem, and I have not
noticed any side effects.


	Eero