lua-users home
lua-l archive

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


But the 5.1.5 still miss the lua_assert line, right?

And the 5.2 has no if before call anchor_token.

On Fri, Apr 20, 2012 at 4:33 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> Probably the test should be 'if (ls->fs)', but it does not seem to
> be necessary anyway.

A comment in 5.2 explains why 'if (ls->fs)' is not necessary:

 /* last token from outer function must be EOS */
 lua_assert(ls->fs != NULL || ls->t.token == TK_EOS);

-- Roberto