On Fri, Jul 11, 2014 at 12:49 AM, Ben Fritz wrote:
> On Wednesday, July 9, 2014 11:24:50 PM UTC-5, Yukihiro Nakadaira wrote:
> >
> > Here is sample code.
> >
> > [edited]
> >
> > L = luaL_newstate();
> >
> > lua_pushcclosure(L, add, 0);
> > lua_pushinteger(L, 111);
> > lua_pushint
On Wednesday, July 9, 2014 11:24:50 PM UTC-5, Yukihiro Nakadaira wrote:
>
> Here is sample code.
>
> [edited]
>
> L = luaL_newstate();
>
> lua_pushcclosure(L, add, 0);
> lua_pushinteger(L, 111);
> lua_pushinteger(L, 222);
> lua_call(L, 2 /* nargs */, 1 /* nresults */);
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On July 10, 2014 7:49:02 PM GMT+03:00, Ben Fritz
wrote:
>On Wednesday, July 9, 2014 11:24:50 PM UTC-5, Yukihiro Nakadaira wrote:
>>
>> Here is sample code.
>>
>> [edited]
>>
>> L = luaL_newstate();
>>
>> lua_pushcclosure(L, add, 0);
>>
On Mon, Jul 7, 2014 at 2:36 PM, Benjamin Fritz
wrote:
> I want to finish up this patch to fix a crash in Vim:
> https://groups.google.com/d/topic/vim_dev/dnN58kO5Vg4/discussion
>
> I changed luaV_setref() to return a value if garbage collection cannot
> safely proceed.
>
> But, I do not know how
I want to finish up this patch to fix a crash in Vim:
https://groups.google.com/d/topic/vim_dev/dnN58kO5Vg4/discussion
I changed luaV_setref() to return a value if garbage collection cannot
safely proceed.
But, I do not know how to get that return value back to the code
calling it from eval.c, vi