Page 1 of 1

What is CCONV?

Posted: Tue Jan 09, 2018 9:32 pm
by BarnyardProgrammer
I am just starting into using C programming for Phidgets. What is CCONV?

Example:
static void CCONV ssleep(int);

Thanks!

Re: What is CCONV?

Posted: Fri Jan 12, 2018 10:33 am
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

Re: What is CCONV?

Posted: Mon Jan 15, 2018 9:43 pm
by BarnyardProgrammer
Thanks!