VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfGuiCore
vrfintPtrDefine.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#pragma once
10
#include <string>
11
#include <cstdio>
12
14
#if WIN32 && _MSC_VER == 1400
15
16
#ifndef _INTPTR_T_DEFINED
17
#define _INTPTR_T_DEFINED
18
#ifdef _WIN64
19
typedef
__int64 intptr_t;
20
#else
/* _WIN64 */
21
typedef
_W64
int
intptr_t;
22
#endif
/* _WIN64 */
23
#endif
/* _INTPTR_T_DEFINED */
24
25
#ifndef _UINTPTR_T_DEFINED
26
#define _UINTPTR_T_DEFINED
27
#ifdef _WIN64
28
typedef
unsigned
__int64 uintptr_t;
29
#else
/* _WIN64 */
30
typedef
_W64
unsigned
int
uintptr_t;
31
#endif
/* _WIN64 */
32
#endif
/* _UINTPTR_T_DEFINED */
33
34
#else
35
#include <stdint.h>
36
#endif
37
38
//A simple utility function to convert a intptr_t to a std::string
39
static
std::string
intPtrToKey
(intptr_t t)
40
{
41
char
buf[64];
42
43
sprintf(buf,
"%d"
, t);
44
45
return
buf;
46
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)