New templatized linked_list collection

Also updated tests to work with memory changes
This commit is contained in:
Justin C. Miller
2018-09-09 15:32:10 -07:00
parent e7a509176d
commit d5c44645eb
6 changed files with 399 additions and 11 deletions

View File

@@ -1,9 +1,9 @@
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
// kutil malloc/free stubs
#include <malloc.h>
namespace kutil {
void * malloc(size_t n) { return ::malloc(n); }
void free(void *p) { ::free(p); }
}
void * operator new (size_t n) { return ::malloc(n); }
void * operator new[] (size_t n) { return ::malloc(n); }
void operator delete (void *p) noexcept { return ::free(p); }
void operator delete[] (void *p) noexcept { return ::free(p); }