Mobile API Reference
MicroStrategy 2019
NewOperator.h
Go to the documentation of this file.
1
//==============================================================================================
2
// FILENAME : NewOperator.h
3
// AUTHOR : Juan Pablo Muraira
4
// CREATION : 9/26/01
5
// Copyright (C) MicroStrategy Incorporated 2001
6
// All Rights Reserved
7
//==============================================================================================
8
#ifndef MBase_NewOperator_h
9
#define MBase_NewOperator_h
10
11
#include "
Base.h
"
// export macros
12
#include "
PDCHeader/PDCstddef.h
"
13
14
namespace
MBase
15
{
16
class
Buffer;
17
}
18
19
#ifdef WIN32
20
#define _BUFFER_NEW_OPERATOR_DEFINED_
21
22
#ifdef _NEW_OPERATOR_UNDEFINED_
23
#undef new
24
#endif
25
26
#ifdef _OBJECT_DUMP_NEW_OPERATOR_DEFINED_
27
#undef new
28
#endif // DEBUG
29
#endif
30
// redefine new and delete operators in the global namespace
31
33
// IMPORTANT: Compiler Error C2059 indicates that NewOperator.h was
34
// included before PlatformAPI_ObjectDump.h.
35
void
DLL_BASE_EXIM
*
operator
new
(
size_t
size,
MBase::Buffer
* iBuffer);
36
void
DLL_BASE_EXIM
operator
delete
(
void
*iPtr,
MBase::Buffer
* iBuffer)
throw
();
37
38
//kxiao remove for VC8
39
//#ifndef WIN32
40
void
DLL_BASE_EXIM
*
operator
new
[](
size_t
size,
MBase::Buffer
* iBuffer);
41
void
DLL_BASE_EXIM
operator
delete
[](
void
*iPtr,
MBase::Buffer
* iBuffer)
throw
();
42
//#endif
43
44
45
#endif // MBase_NewOperator_h
MBase::Buffer
Definition:
Buffer.h:58
DLL_BASE_EXIM
#define DLL_BASE_EXIM
Definition:
Base.h:20
Base.h
MBase
Definition:
Allocator.h:47
PDCstddef.h
Users
vvitarello
Desktop
MobileSDKSourceFiles
Base
Base
NewOperator.h
Generated by
1.8.14