MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / track_new_aligned_impl

Function track_new_aligned_impl

src/misc/alloc_tracker_overrides.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55#if defined(_MSC_VER)
56# include <malloc.h>
57static void * track_new_aligned_impl(size_t size, size_t alignment) {
58 if (size == 0) size = 1;
59 if (alignment < sizeof(void*)) alignment = sizeof(void*);
60 void *p = _aligned_malloc(size, alignment);
61 das::track_alloc_hook(p, size);
62 return p;
63}
64static void track_delete_aligned_impl(void *p) noexcept {
65 if (!p) return;
66 das::track_free_hook(p);

Callers 2

operator newFunction · 0.85
operator new[]Function · 0.85

Calls 1

track_alloc_hookFunction · 0.70

Tested by

no test coverage detected