[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: main function has more than 200 local variables
- From: Peter Cawley <lua@...>
- Date: Mon, 15 Jun 2009 17:15:45 +0100
On Mon, Jun 15, 2009 at 5:09 PM, Sivan Thiruvengadam<email@example.com> wrote:
> Nevertheless, Just out of curiosity, do you know in which file these error
> constants has been defined and how these constants gets converted to the
> actual text.
You mean the error message?
In the errorlimit function (lparser.c): luaO_pushfstring(fs->L, "main
function has more than %d %s", limit, what)
This would have been called by luaY_checklimit (lparser.c), which in
turn would have been called by new_localvar (again, lparser.c).