VR-Vantage 2.2 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrvUtil.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 #ifdef _WIN32
12 # pragma warning( error : 4700 )
13 # pragma warning( error : 4701 )
14 # pragma warning( error : 4101 )
15 # pragma warning( error : 4189 )
16 # pragma warning( error : 4715 )
17 # pragma warning( error : 4239 )
18 # pragma warning( error : 4150 )
19 # pragma warning( error : 4553 )
20 # pragma warning( disable : 4512 )
21 # pragma warning( disable : 4511 )
22 # pragma warning( disable : 4396 )
23 # pragma warning( disable : 4832 )
24 # pragma warning( disable : 4996 )
25 # ifdef _M_X64 //64bit application, set DT_MEMORY_64
26 # define DT_MEMORY_64
27 # endif
28 # ifdef vrvUtil_EXPORTS
29 # define DT_DLL_VRVUTIL __declspec ( dllexport )
30 # else
31 # define DT_DLL_VRVUTIL __declspec ( dllimport )
32 # ifdef _DEBUG
33 # pragma comment(lib,"vrvUtild.lib")
34 # else
35 # pragma comment(lib,"vrvUtil.lib")
36 # endif
37 # endif
38 #else
39 # define DT_DLL_VRVUTIL
40 # if defined(__LP64__) || defined(_LP64) //64bit application, set DT_MEMORY_64
41 # define DT_MEMORY_64
42 # endif
43 #endif
44 #include <memory>
45 
46 //This following code is for MAK development only, it can be ignored.
47 //
48 #ifdef MEMTRACK
49 //Comment this code out
50 #error Code not uncommented.
51 #endif
52 // !*** Uncomment all code below this line and recompile***!
53 //
54 // #ifdef MEMTRACK
55 // namespace makVrv
56 // {
57 // DT_DLL_VRVUTIL void mem_track( void * p, size_t size );
58 // DT_DLL_VRVUTIL void mem_release( void * p );
59 // DT_DLL_VRVUTIL void mem_start( );
60 // DT_DLL_VRVUTIL void mem_stop( );
61 // DT_DLL_VRVUTIL void mem_frame( double time );
62 // DT_DLL_VRVUTIL void mem_long( );
63 // DT_DLL_VRVUTIL void mem_clear( );
64 // DT_DLL_VRVUTIL void mem_print( bool pointers );
65 // }
66 // #endif
67 //#undef USE_MEMTRACK
68 //#define USE_MEMTRACK 1
69 //
70 // inline void* operator new (size_t size)
71 // {
72 // void *p=malloc(size);
73 // #if USE_MEMTRACK
74 // makVrv::mem_track(p, size);
75 // #endif
76 // if (p==0) // did malloc succeed?
77 // throw std::bad_alloc(); // ANSI/ISO compliant behavior
78 // return p;
79 // }
80 //
81 // inline void * operator new[] (size_t size)
82 // {
83 // void *p=malloc(size);
84 // #if USE_MEMTRACK
85 // makVrv::mem_track(p, size);
86 // #endif
87 // if (p==0) // did malloc succeed?
88 // throw std::bad_alloc(); // ANSI/ISO compliant behavior
89 // return p;
90 // }
91 //
92 //
93 // inline void operator delete (void *p)
94 // {
95 // if(p)
96 // {
97 // makVrv::mem_release(p);
98 // free(p);
99 // }
100 // }
101 //
102 // inline void operator delete[] (void* p)
103 // {
104 // if(p)
105 // {
106 // makVrv::mem_release(p);
107 // free(p);
108 // }
109 // }
110 
111 namespace makVrv
112 {
113  typedef double DtDynamicTerrainTimeType;
114 }


Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)