(svn r23439) -Fix: Use the DEBUG macro to output the reason for a compile failure in info.nut instead of printing it directly to stderr

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
yexo 13 years ago
parent d60ec55983
commit 52c3e45cf1

@ -33,7 +33,7 @@ void Squirrel::CompileError(HSQUIRRELVM vm, const SQChar *desc, const SQChar *so
engine->crashed = true;
SQPrintFunc *func = engine->print_func;
if (func == NULL) {
scfprintf(stderr, _SC("%s"), buf);
DEBUG(misc, 0, "[Squirrel] Compile error: %s", SQ2OTTD(buf));
} else {
(*func)(true, buf);
}

Loading…
Cancel
Save