What is the point of defining a calling convention?

后端 未结 5 1501
醉话见心
醉话见心 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条回答
  •  太阳男子
    2021-01-24 07:04

    Also, back in the day, some Windows libraries used Pascal calling convention and other libraries used C convention. A preprocessor define helped gloss over that.

提交回复
热议问题