-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew.h
31 lines (27 loc) · 753 Bytes
/
new.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @file new.h
* @author askn (K.Sato) multix.jp
* @brief
* @version 0.1
* @date 2024-01-06
*
* @copyright Copyright (c) 2024 askn37 at github.com
*
*/
#pragma once
#ifdef __cplusplus
#include <stdlib.h>
void * operator new (size_t size);
void * operator new[] (size_t size);
void operator delete (void * ptr) noexcept;
void operator delete[] (void * ptr) noexcept;
/* C++11 support */
void * operator new (size_t size, void * ptr) noexcept;
void * operator new[] (size_t size, void * ptr) noexcept;
/* C++14 support */
#if (__cpp_sized_deallocation >= 201309L)
void operator delete (void * ptr, size_t size) noexcept;
void operator delete[] (void * ptr, size_t size) noexcept;
#endif
#endif
// end of header