INSERT ENRAGED COMMIT MESSAGE HERE
This commit is contained in:
parent
56cdcd7a54
commit
2277d5bd58
5
src/lt.c
5
src/lt.c
|
@ -423,7 +423,6 @@ LT_BOOL LT_Assert(LT_BOOL assertion, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
if(assertion)
|
if(assertion)
|
||||||
{
|
{
|
||||||
char *ftString = LT_Alloc(64);
|
|
||||||
char *asBuffer = LT_Alloc(512);
|
char *asBuffer = LT_Alloc(512);
|
||||||
int place = (int)ftell(parseFile);
|
int place = (int)ftell(parseFile);
|
||||||
|
|
||||||
|
@ -431,13 +430,11 @@ LT_BOOL LT_Assert(LT_BOOL assertion, const char *fmt, ...)
|
||||||
assertError = LT_TRUE;
|
assertError = LT_TRUE;
|
||||||
assertString = malloc(512);
|
assertString = malloc(512);
|
||||||
|
|
||||||
sprintf(ftString, "(offset %d)", place);
|
|
||||||
|
|
||||||
va_start(va, fmt);
|
va_start(va, fmt);
|
||||||
vsprintf(asBuffer, fmt, va);
|
vsprintf(asBuffer, fmt, va);
|
||||||
va_end(va);
|
va_end(va);
|
||||||
|
|
||||||
sprintf(assertString, "%s %s", ftString, asBuffer);
|
sprintf(assertString, "(offset %d) %s", place, asBuffer);
|
||||||
|
|
||||||
LT_SetGarbage(assertString);
|
LT_SetGarbage(assertString);
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user