lua-users home
lua-l archive

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


It was thus said that the Great Sean Conner once stated:
> 
>   Also, is there an easy way to get the line number in Lua, much like C has
> __LINE__?  

  Okay, I found that answer:  debug.getinfo(1,'l').currentline will do that.

  -spc (Okay, here's a new proposal, what if we change Lua <ducks rotten
	fruit thrown his way> ... )