Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人请告诉我如何更改c中的默认调用约定?
语言没有指定调用约定。它们是编译器的扩展。
也就是说,通常您会执行以下操作:
void __fastcall my_func(void);
但这完全取决于您的编译器和平台。
这在很大程度上取决于您的编译器、工具链和平台。您将需要更具体地了解您的环境是什么,以及您希望更改为什么。