[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Initial line number for luaL_loadbuffer
- From: Sean Conner <sean@...>
- Date: Thu, 15 May 2014 16:45:00 -0400
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> ... )