just started reading Effective C++ Second Edition by Scott Meyers and I came into a problem with converting the following define
I imagine the inline code would be somthing likeCode:#define KEYDOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)
What do I use for the type for my parameter (vk_code) being that it is a define?Code:inline bool KeyDown(TYPE vk_code) { return ((GetAsyncKeyState(vk_code) & 0x8000) ? TRUE : FALSE) }