lua-users home
lua-l archive

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


On Fri, Jul 22, 2011 at 20:53, Tom N Harris <telliamed@whoopdedo.org> wrote:
> You may need this patch. (I sent James a mail, but it may have gotten
> nulled.)
>
> diff --git a/ffi.c b/ffi.c
> index 4e9f1df..98e326a 100644
> --- a/ffi.c
> +++ b/ffi.c
> @@ -1699,6 +1699,7 @@ static const luaL_Reg cmodule_mt[] = {
>
>  static const luaL_Reg jit_mt[] = {
>     {"__gc", &jit_gc},
> +    {NULL, NULL}
>  };

Thanks I must have missed the previous email. Its now in git HEAD.
Interestingly enough the reason it wasn't crashing for me is that msvc
and gcc both positioned the next register array (ffi_reg) directly
after cmodule_mt in memory. So it would just keep on going and
register all of the ffi.* functions in the cmodule metatable as well.

-- James