mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fixed assert macros, and improved error handling.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
|
||||
*/
|
||||
|
||||
#include "bx_p.h"
|
||||
#include <bx/allocator.h>
|
||||
|
||||
#include <malloc.h>
|
||||
@@ -38,7 +37,7 @@ namespace bx
|
||||
BX_UNUSED(_file, _line);
|
||||
_aligned_free(_ptr);
|
||||
# else
|
||||
bx::alignedFree(this, _ptr, _align, _file, _line);
|
||||
alignedFree(this, _ptr, _align, _file, _line);
|
||||
# endif // BX_
|
||||
}
|
||||
|
||||
@@ -55,7 +54,7 @@ namespace bx
|
||||
BX_UNUSED(_file, _line);
|
||||
return _aligned_malloc(_size, _align);
|
||||
# else
|
||||
return bx::alignedAlloc(this, _size, _align, _file, _line);
|
||||
return alignedAlloc(this, _size, _align, _file, _line);
|
||||
# endif // BX_
|
||||
}
|
||||
|
||||
@@ -68,7 +67,7 @@ namespace bx
|
||||
BX_UNUSED(_file, _line);
|
||||
return _aligned_realloc(_ptr, _size, _align);
|
||||
# else
|
||||
return bx::alignedRealloc(this, _ptr, _size, _align, _file, _line);
|
||||
return alignedRealloc(this, _ptr, _size, _align, _file, _line);
|
||||
# endif // BX_
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user