gCAD3D 2.40
ut_cast.h
Go to the documentation of this file.
1 
21 #define LONG_PTR(vp1) (long)vp1
23 
25 #define INT_PTR(vp1) (int)((long)vp1)
26 
28 #ifdef _LP64
29 // 64-bit
30 #define PTR_INT(i1) (void*)((long)i1)
31 
32 #else
33 // 32-bit
34 #define PTR_INT(i1) (void*)((int)i1)
35 #endif
36 
37 
39 #define PTR_LONG(l1) (void*)l1
40 
42 #define PTR_CHRA(txt) (void*)txt
43 
45 #define TXT_PTR(vp1) (char*)(vp1)
46 
47 
48 // EOF