[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (rc1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 29 Apr 2020 10:56:54 -0300
> Roberto Ierusalimschy <roberto@inf.puc-rio.br> 于2020年4月29日周三 上午6:47写道:
>
> > typedef void (*voidf)(void);
> >
> > static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) {
> > lua_CFunction f = (lua_CFunction)(voidf)GetProcAddress((HMODULE)lib, sym);
> > if (f == NULL) pusherror(L);
> > return f;
> > }
>
> I tested. It works. No warnings after adding `(voidf)`.
Many thanks,
-- Roberto
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org