On 06/11/18 23:02, Fabian Maurer wrote:
Hi Piotr,
The func argument should probably use CDECL calling convention (not that
it really matters in case of no-arguments function).
I did it like MSVCRT__crt_atexit did it, first pass the func like this and then cast to MSVCRT__onexit_t. Should I make it MSVCRT__onexit_t right away?
I think it's better to keep function header the same as in native. Could you please also change MSVCRT__crt_atexit header while you're at it?
Thanks, Piotr