By Shoter


2018-11-08 23:12:59 8 Comments

Is there any difference in using _cdecl_ vs __cdecl (1 underscore vs 2 underscores) in function declaration?

I am using Visual Studio 2017 with standard tools that comes with it.

1 comments

@P.W 2018-11-09 06:37:45

__cdecl is the default calling convention for C and C++ programs used by Microsoft Compiler.

In fact, all of its calling conventions follow the same pattern of double underscore before the name.

_cdecl_ seems to be just another name for __cdecl defined using a macro.

Related Questions

Sponsored Content

31 Answered Questions

18 Answered Questions

21 Answered Questions

[SOLVED] What is the "-->" operator in C++?

5 Answered Questions

[SOLVED] What are the rules about using an underscore in a C++ identifier?

33 Answered Questions

14 Answered Questions

[SOLVED] What is the difference between const int*, const int * const, and int const *?

4 Answered Questions

[SOLVED] What is the difference between 'typedef' and 'using' in C++11?

15 Answered Questions

22 Answered Questions

[SOLVED] Why should I use a pointer rather than the object itself?

  • 2014-03-03 11:54:16
  • gEdringer
  • 265873 View
  • 1379 Score
  • 22 Answer
  • Tags:   c++ pointers c++11

24 Answered Questions

[SOLVED] What does the C++ standard state the size of int, long type to be?

  • 2009-02-26 07:59:23
  • Jérôme
  • 1157433 View
  • 642 Score
  • 24 Answer
  • Tags:   c++ c++-faq

Sponsored Content