Fixed a minor error in va_list handling

git-svn-id: http://picoc.googlecode.com/svn/trunk@210 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-03-16 00:47:01 +00:00
parent 4b8ad0526e
commit 188eb93d43

View file

@ -11,6 +11,7 @@ void ProgramFail(struct ParseState *Parser, const char *Message, ...)
va_start(Args, Message);
PlatformVPrintf(Message, Args);
va_end(Args);
PlatformPrintf("\n");
PlatformExit(1);
}
@ -23,6 +24,7 @@ void LexFail(struct LexState *Lexer, const char *Message, ...)
PlatformPrintf("%s:%d: ", Lexer->FileName, Lexer->Line);
va_start(Args, Message);
PlatformVPrintf(Message, Args);
va_end(Args);
PlatformPrintf("\n");
PlatformExit(1);
}