What is CCONV?

C, C++, and Visual C++
BarnyardProgrammer
Phidgetsian
Posts: 6
Joined: Tue Jan 09, 2018 9:26 pm
Contact:

What is CCONV?

Postby BarnyardProgrammer » Tue Jan 09, 2018 9:32 pm

I am just starting into using C programming for Phidgets. What is CCONV?

Example:
static void CCONV ssleep(int);

Thanks!

User avatar
mparadis
Site Admin
Posts: 568
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: What is CCONV?

Postby mparadis » Fri Jan 12, 2018 10:33 am

CCONV stands for "Calling Convention", and it's just a defined term in our libraries that makes sure the function is called with the proper prefix for the compiler that's being used. You can find CCONV defined in phidget22.h:

Code: Select all

#if defined(__stdcall)
 #define CCONV __stdcall
#else
 #if defined(__BORLANDC__) || defined(_MSC_VER)
  #define CCONV __stdcall
 #else
  #define CCONV
 #endif
#endif

BarnyardProgrammer
Phidgetsian
Posts: 6
Joined: Tue Jan 09, 2018 9:26 pm
Contact:

Re: What is CCONV?

Postby BarnyardProgrammer » Mon Jan 15, 2018 9:43 pm

Thanks!


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 1 guest