summaryrefslogtreecommitdiff
path: root/src/inc/new.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inc/new.hpp')
-rw-r--r--src/inc/new.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/inc/new.hpp b/src/inc/new.hpp
new file mode 100644
index 0000000000..67f7554e4c
--- /dev/null
+++ b/src/inc/new.hpp
@@ -0,0 +1,22 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+//
+
+//
+
+#ifndef __new__hpp
+#define __new__hpp
+
+struct NoThrow { int x; };
+extern const NoThrow nothrow;
+
+void * __cdecl operator new(size_t n, const NoThrow&);
+void * __cdecl operator new[](size_t n, const NoThrow&);
+
+#ifdef _DEBUG
+void DisableThrowCheck();
+#endif
+
+#endif