IonicWind Software

IWBasic => General Questions => Topic started by: Allan on July 24, 2008, 08:04:51 PM

Title: C Define usage
Post by: Allan on July 24, 2008, 08:04:51 PM
I have found a C #DEFINE that I dont understand its use. Appears to be a MACRO?

#define SQL_STATIC      ((void(*)(void *))0)
#define SQL_TRANSIENT     ((void(*)(void *))-1)


Would it be a CONST in Emergence Basic:  ?
CONST SQL_STATIC       =  0
CONST SQL_TRANSIENT = -1

Thanks, Allan
Title: Re: C Define usage
Post by: Ionic Wind Support Team on July 24, 2008, 09:09:17 PM
Allan,
Yes.  It is that simple.

Paul.