aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/raw_pdb/src/Foundation/PDB_Memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/raw_pdb/src/Foundation/PDB_Memory.h')
-rw-r--r--thirdparty/raw_pdb/src/Foundation/PDB_Memory.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/thirdparty/raw_pdb/src/Foundation/PDB_Memory.h b/thirdparty/raw_pdb/src/Foundation/PDB_Memory.h
new file mode 100644
index 000000000..ccb7e8698
--- /dev/null
+++ b/thirdparty/raw_pdb/src/Foundation/PDB_Memory.h
@@ -0,0 +1,11 @@
+// Copyright 2011-2022, Molecular Matters GmbH <[email protected]>
+// See LICENSE.txt for licensing details (2-clause BSD License: https://opensource.org/licenses/BSD-2-Clause)
+
+#pragma once
+
+
+#define PDB_NEW(_type) new _type
+#define PDB_NEW_ARRAY(_type, _length) new _type[_length]
+
+#define PDB_DELETE(_ptr) delete _ptr
+#define PDB_DELETE_ARRAY(_ptr) delete[] _ptr