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:
parent
4b8ad0526e
commit
188eb93d43
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue