Why S32DS compiler can't recognize MARCO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Why S32DS compiler can't recognize MARCO

1,118件の閲覧回数
alexhuang5367
Contributor II

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?

marco_error.JPG

タグ(2)
0 件の賞賛
返信
1 返信

1,010件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi Alex,

I don't see anything suspicious on the screenshot you attached.

Could you possibly post the C statement at line 182?

I'd recommend you to preprocess the main.c - perhaps this gives you more info about the macro usage.

pastedImage_1.png

Stan

0 件の賞賛
返信