v0.4.0
This is a big release! A lot of functionality was reworked and many modules were added.
Updates
1. Memory
Memory
handling improved. This ensures safe memory allocations; they exit the program upon failure.- Allocators support was added. Now you can pass your custom allocators as arguments to the functionality that allocates memory. All you need to do is to create a base allocator object and specify the
alloc
,realloc
andfree
functions. mallocator.h
module was added. It uses the plaincalloc
/free
, but keeps allocation statistics for later examination.
2. Containers
- Containers functionality was extended and unified. Functionality has the same interface and behaves in similar predictable manner. The string handling module was especially extended. So, you should have all you need to easily work with strings.
common.h
module was added. It contains all common generic functionality that can accept any data structure.
3. Debugging
Debug
module was updated.VT_ENFORCE
andVT_CHECK
were added as well. The debugging code will be automatically removed in release builds.Logger
was updated and can be used with the debugging code. They share approximately the same interface, so it should be intuitive.