aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/malloc/malloc.cpp
blob: e43a96f2ac732270404e74d547f6ff82f697b311 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "malloc.h" 
 
#include <util/system/compiler.h> 
 
//////////////////////////////////////////////////////////////////////////////// 
 
Y_WEAK extern "C" size_t nallocx(size_t size, int /* flags */) noexcept 
{ 
    return size; 
} 
 
#ifndef _win_ 
Y_WEAK extern "C" size_t malloc_usable_size(void* /* ptr */) noexcept 
{ 
    return 0; 
} 
#endif 
 
////////////////////////////////////////////////////////////////////////////////