横から失礼します。
たかぎさんって毎回難しい言葉使って
質問者をいじめてませんか・・・?
スレ主には悪いですがこのような質問をする人が
C++パーサー等理解してるわけないですよね?
もう少しわかりやすく説明された方が
回答者からも喜ばれると思いますよ?
>>デバック用さん
以前、似た様な質問をここで見た記憶が御座います。
URLがでてこないのですがソース書きます。
可変長引数を与える方法ではないのですが
これでも表示ができます。
void dumDebTextXY(int x, int y, int deb, char *name);
void dumDebText(int deb,char *name);
#define DebTextXY(X,Y,DEB) dumDebTextXY(X,Y,DEB,TEXT(#DEB))
#define DebText(DEB) dumDebText(DEB,TEXT(#DEB))
void dumDebTextXY(int x, int y, int deb,char *name){
char str[1024] = "";
wsprintf(str, TEXT("%s = %d"),name,deb);
DrawFormatString(x,y,GetColor(255,255,255),str);
}
void dumDebText(int deb,char *name){
// Y座標指定
int y = Deb.Cnt * FONT_SIZE;
char str[1024] = "";
wsprintf(str, TEXT("%s= %d"),name,deb);
DrawFormatString(0,y,GetColor(255,255,255),str);
Deb.Cnt++;
}