[go: up one dir, main page]

Menu

[r29]: / engine / types.h  Maximize  Restore  History

Download this file

36 lines (27 with data), 536 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Data types
//
#ifndef __IRTYPES
#define __IRTYPES
// These three must match pointer size but support binary ops
typedef long VMINT;
typedef unsigned long VMUINT;
typedef unsigned long VMPTR;
typedef union VMTYPE
{
void *ptr;
unsigned long ul;
VMUINT u32; // was int, but...
unsigned short u16;
unsigned char u8;
long l;
VMINT i32; // This must be VMINT rather than int or we get sign truncation on AMD64
short i16;
char i8;
} VMTYPE;
typedef union OBJECTID
{
struct OBJECT *objptr;
unsigned int saveid;
} OBJECTID;
#endif