[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Generating a Lua function in C
- From: "John Hind" <john.hind@...>
- Date: Mon, 2 Feb 2009 17:39:25 -0000
Thanks Alex - that got it!
It was clvalue(L->top-1) at this point in the code, but otherwise you were
right on the money. Perils of reverse engineering - I thought that parameter
was the upvalues counted with the previous parameter!
I doubt this is it, but you should definitely pass something other then NULL
as the environment.
I'd recommend clvalue(L->top-2)->l.env, so that the sub functions global
table is unchanged.
Description: S/MIME cryptographic signature