Community Translation - Failure to Compile Variadic Macro in FR Softune V6 - KBA218954

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi,               

I would like to translate K KBA218954 BA into Japanese.

Please confirm to my work.

Thanks,

Kenshow

0 Likes
2 Replies
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi, Kenshow-san

Confirm to work this KBA.

Thanks,

Jenna

Jenna Jo
0 Likes
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi Jenna-san,

                                

Japanese translation was over.
Please check below.

Original KBA:

Failure to Compile Variadic Macro in FR Softune V6 - KBA218954

Thanks.

Kenshow

==============================

タイトル: FR Softune V6でVariadicマクロをコンパイルできない - KBA218954

バージョン:**

質問:

Variadic Macro#define Macro(...)__VA_ARGS__FR Softune V6でコンパイルできない理由は何ですか?

回答:

Variadicマクロは、C言語のC99標準(ISO / IEC 98991999)の新しいマクロです。FR Softune V6のコンパイラはANSIおよびC90ISO / IEC 98991990)をサポートしていますが、C99はサポートしていません。したがって、FR Softune V6でコンパイルすると、以下に示す可変長マクロ定義が失敗します。

// 例えば。

#define MY_DEBUG_LOG(...)         (printf(__VA_ARGS__))

#define MY_DEBUG_TRACE(format,...)         (printf(format,##__VA_ARGS__))

サポートされているC/C ++言語規格の詳細については、FR Family Softune C/C _++ Compiler Manual for V6参照してください。

==============================

07-August-2020

  Kenshow

0 Likes