What is the point of defining a calling convention?

后端 未结 5 1497
醉话见心
醉话见心 2021-01-24 06:20

For example:

int WINAPI WinMain ( HINSTANCE instance, HINSTANCE prev_instance, PSTR cmd_line, int cmd_show )

WINAPI is a a define that looks li

5条回答
  •  梦毁少年i
    2021-01-24 07:09

    You can just write __stdcall in its place, but don't. They've seen fit to #define WINAPI to __stdcall to make that opaque, which is just good programming practice.

提交回复
热议问题