#include <stdarg.h>
bool debugOutputOpen;
FILE *debugOutput;
void cssparser::debugPrintf(void *ignored, char *fmt, ...) {
va_list args;
if (!debugOutputOpen) {
debugOutput = fopen("C:/bisondebug.txt", "w");
debugOutputOpen = true;
}
va_start(args, fmt);
vfprintf(debugOutput, fmt, args);
fflush(debugOutput);
va_end(args);
}