c++的名字修饰符的另一个game programmer gems的解释

_cdecl.The caller cleans up the stack,meaning that it is responsible for poping its own arguments off the stack after the call completes.This convention is required for variable argument functions becaouse the called function doesn't  neccessarily have the information it needs to pop the correct number of arguments.This is the default calling convention for static and global functions in Cand C++.

_stdcall.The called function cleans up the stack.This is the standard convention used for Win32 API calls,probably becaouse it is more efficient in terms of client code size.

你可能感兴趣的:(C++,api,function,UP)