AnsweredAssumed Answered

Why S32DS compiler can't recognize MARCO

Question asked by Alex Huang on Sep 1, 2017
Latest reply on Sep 1, 2017 by stanish

hello dear all

i'v try to use MARCO function in S32DS like this

 

#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif

 

but it shows some error like this, how can i solve it?

Outcomes