mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 12:42:34 +01:00
Fixed assert macros, and improved error handling.
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user