すでに対応(仕様?)されてるかもしれませんが、一応報告を
マクロで"%"で囲まれた文字列に変換するものを作ったのですが、
どうやら文字列内の"%"記号がパラメーターとして認識されてエラーがでます。
/* エラー * #define SetPercent(%1) ("%"+(%1)+"%") mes SetPercent("ABC") // mes ("%"+("ABC")+"%") // <-こう出て欲しかった /**/ /* 動く */ #module #define global ctype spestr(%1) spestr__(%1) #defcfunc spestr__ int index sdim str_, 2 poke str_, 0, index return str_ #global #define SetPercent(%1) (spestr(37)+(%1)+spestr(37)) mes SetPercent("ABC") // mes ("%"+("ABC")+"%") /**/
現在はspestrという関数を作成して回避しているのですが、
どうなんでしょうか?
また、こういうバグらしきものはどこへ報告したらいいのでしょうか?