vegastrike
0.5.1.r1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
debug_vs.cpp
Go to the documentation of this file.
1
#ifndef VS_DEBUG
2
3
#else
4
#include <stdio.h>
5
6
#include "
hashtable.h
"
7
#if defined (_MSC_VER) && defined (_DEBUG)
8
#include <crtdbg.h>
9
#endif
10
Hashtable< long, char, 65535 >
constructed;
11
12
Hashtable< long, char, 65535 >
destructed;
13
bool
DEBUG_ERROR_IN_MY_CODE =
true
;
14
void
VS_DEBUG_ERROR
()
15
{
16
VSFileSystem::Fprintf( stderr,
"WARNING: invalid refcount in vegastrike object\n"
);
17
#if defined (_MSC_VER) && defined (_DEBUG)
18
if
(DEBUG_ERROR_IN_MY_CODE)
19
_RPT0( _CRT_ERROR,
"WARNING: invalid refcount in vegastrike object\n"
);
20
return
;
21
#endif
22
while
(DEBUG_ERROR_IN_MY_CODE)
23
printf(
"ack"
);
24
}
25
char
* Constructed(
void
*v )
26
{
27
return
constructed.
Get
( (
long
) v );
28
}
29
char
* Destructed(
void
*v )
30
{
31
return
destructed.
Get
( (
long
) v );
32
}
33
#endif
34
src
debug_vs.cpp
Generated on Fri Feb 14 2014 09:03:08 for vegastrike by
1.8.4