void fxReportLineReferenceError(txParser* parser, txInteger line, txString theFormat, ...) { c_va_list arguments; parser->errorCount++; if (!parser->errorSymbol) parser->errorSymbol = parser->ReferenceErrorSymbol; c_va_start(arguments, theFormat); (*parser->reportError)(parser->console, parser->path ? parser->path->string : C_NULL, line, theFormat, arguments); c_va_end(arguments); }
void fxReportError(txLinker* linker, txString theFormat, ...) { c_va_list arguments; fprintf(stderr, "### "); c_va_start(arguments, theFormat); vfprintf(stderr, theFormat, arguments); c_va_end(arguments); fprintf(stderr, "!\n"); linker->error = C_EINVAL; c_longjmp(linker->jmp_buf, 1); }