/*
* print debug messages
*/
#include "art.h"
void bug(char *fmt, ...){
char buf[200];
va_list arg;
va_start(arg, fmt);
vseprint(buf, buf+sizeof(buf), fmt, arg);
va_end(arg);
msg("%s", buf);
if(button123()){
while(button123()) getmouse();
while(!button123()) getmouse();
}
else{
while(!button123()) getmouse();
while(button123()) getmouse();
}
}
|