2 ms·
There is nothing wrong with either practice. The GP is just stating their preferred style. In fact it is good practice to use struct wrappers for void* pointer
by rramadass 4y ago
There is nothing wrong with either practice. The GP is just stating their preferred style.
In fact it is good practice to use struct wrappers for void* pointers to get type safety. On the other hand, a typedef is just for programmer convenience and the compiler doesn't care.
Eg: See DECLARE_HANDLE defined under STRICT at https://renenyffenegger.ch/notes/Windows/development/WinAPI/data-types/index https://renenyffenegger.ch/notes/Windows/development/WinAPI/...