Fixed assert macros, and improved error handling.

This commit is contained in:
Бранимир Караџић
2021-10-25 18:59:11 -07:00
parent 11c3c5e615
commit 51c3264846
42 changed files with 226 additions and 154 deletions

Binary file not shown.

View File

@@ -252,14 +252,14 @@ int main(int _argc, const char* _argv[])
bx::DefaultAllocator allocator;
data = BX_ALLOC(&allocator, size);
bx::read(&fr, data, size);
bx::read(&fr, data, size, bx::ErrorAssert{});
bx::close(&fr);
bx::FileWriter fw;
if (bx::open(&fw, outFilePath) )
{
Bin2cWriter writer(&allocator, name);
bx::write(&writer, data, size);
bx::write(&writer, data, size, bx::ErrorAssert{});
writer.output(&fw);
bx::close(&fw);