cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

spectral
Adept II

#define

Hi,

Is there the possibility to use the keyword '#define' like in standard C ?

Thanks

0 Likes
3 Replies
nou
Exemplar

yes

0 Likes

But when I write something like this :

#define max(a,b) (a>=b?a:b)
#define min(a,b) (a<=b?a:b)

The compiler tell me "# not expected" ...

Do you know why ?





0 Likes

Originally posted by: viewon01 But when I write something like this :

 

#define max(a,b) (a>=b?a:b) #define min(a,b) (a<=b?a:b)

 

The compiler tell me "# not expected" ...

 

Do you know why ?

 

 

 

viewon01,

               What error you are getting. I am not getting any such issues. Please past your kernel code here.

0 Likes