What does “cdecl” stand for?

前端 未结 4 998
广开言路
广开言路 2021-02-02 09:19

Yes, I know that \"cdecl\" is the name of a prominent calling convention, so please don\'t explain calling conventions to me. What I\'m asking is what the abbreviation (?) \"cd

4条回答
  •  盖世英雄少女心
    2021-02-02 09:50

    Updated I've totally revised this, after the comments pointing out how wrong I was. cdecl means that this function uses the same calling convention that C functions use. extern "C" means, in addition, that the function name should not undergo C++ name-mangling.

    As for why it's called cdecl, I don't know any more.

提交回复
热议问题