What is CCONV?

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

What is CCONV?

Post by BarnyardProgrammer »

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: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: What is CCONV?

Post by mparadis »

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?

Post by BarnyardProgrammer »

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests