lua-users home
lua-l archive

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


Roberto Ierusalimschy <roberto@inf.puc-rio.br> 于2020年4月23日周四 下午11:42写道:
> Do other Windows enthusiasts have something to say about that? In
> particular, to do that, wouldn't be better 'void(*)()' instead of
> 'void(*)(void)'?

Some references :

https://stackoverflow.com/questions/57014469/cast-between-incompatible-function-types-in-gcc
https://stackoverflow.com/questions/31482624/is-there-such-a-thing-as-a-generic-function-pointer-in-c-that-can-be-assigned-ca
https://stackoverflow.com/questions/53033813/can-you-cast-a-pointer-to-a-function-pointer-to-void
https://stackoverflow.com/questions/51032/is-there-a-difference-between-foovoid-and-foo-in-c-or-c

I think define a generic function pointer type `typedef void
(*voidfunc)(void)` first would be better.


-- 
http://blog.codingnow.com
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org