I'm using allegro to make a few troubleshooting functions. allegro_message() takes printf()-style parameters, right? So can I build a function that instead of working like this:
Code:
void message(string str) {
allegro_message("%s",str.c_str());
}
works like this:
Code:
void message( ...printf()-style params...) {
allegro_message( ...same params, all at once...);
}
This would be super slick because then the calls to message() would be much simpler. thx
I realize that this has been answered in the past, I was just hoping that since there was only one big parameter and I was only passing it along, not messing around, this solution would be simpler.(?)