Use CHECK instead of assert
git-svn-id: svn://svn.cc65.org/cc65/trunk@1195 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
6628389d85
commit
1b60396980
1 changed files with 7 additions and 7 deletions
|
@ -6,7 +6,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000 Ullrich von Bassewitz */
|
/* (C) 2000-2002 Ullrich von Bassewitz */
|
||||||
/* Wacholderweg 14 */
|
/* Wacholderweg 14 */
|
||||||
/* D-70597 Stuttgart */
|
/* D-70597 Stuttgart */
|
||||||
/* EMail: uz@musoftware.de */
|
/* EMail: uz@musoftware.de */
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
|
#include "check.h"
|
||||||
#include "xsprintf.h"
|
#include "xsprintf.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ int xvsprintf (char* Buf, size_t BufSize, const char* Format, va_list ap)
|
||||||
/* Unsafe version */
|
/* Unsafe version */
|
||||||
int Res = vsprintf (Buf, Format, ap);
|
int Res = vsprintf (Buf, Format, ap);
|
||||||
#endif
|
#endif
|
||||||
assert (Res >= 0 && (unsigned) Res < BufSize);
|
CHECK (Res >= 0 && (unsigned) Res < BufSize);
|
||||||
return Res;
|
return Res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue