Archived
1
0
This commit is contained in:
Benjamin Moir 2015-09-01 00:21:36 +09:30
parent f90e536e4e
commit 283e091c18

View File

@ -488,12 +488,8 @@ LT_BOOL LT_OpenFile(__str filePath)
parseMode = LT_PARSE_FILE; parseMode = LT_PARSE_FILE;
parseFile = fopen(filePath, "r"); parseFile = fopen(filePath, "r");
if(parseFile == NULL) if (LT_Assert(parseFile == NULL, "LT_OpenFile: %s", strerror(errno)));
{
LT_Assert(LT_TRUE, "LT_OpenFile: %s", strerror(errno));
return LT_FALSE; return LT_FALSE;
}
return LT_TRUE; return LT_TRUE;
} }
@ -503,12 +499,8 @@ LT_BOOL LT_OpenString(const char *str)
parseStr = str; parseStr = str;
parseStrPos = 0; parseStrPos = 0;
if (parseStr == NULL) if (LT_Assert(parseStr == NULL, "LT_OpenString: %s", strerror(errno)))
{
LT_Assert(LT_TRUE, "LT_OpenString: %s", strerror(errno));
return LT_FALSE; return LT_FALSE;
}
return LT_TRUE; return LT_TRUE;
} }