[go: up one dir, main page]

File: mfc.h

package info (click to toggle)
libmetakit2.4.9.3 2.4.9.3-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,196 kB
  • ctags: 3,754
  • sloc: cpp: 24,454; xml: 19,818; sh: 9,358; tcl: 1,365; python: 1,176; makefile: 287; ansic: 16; asm: 10
file content (34 lines) | stat: -rwxr-xr-x 783 bytes parent folder | download
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
// mfc.h --
// $Id: mfc.h,v 1.7 2003/11/23 01:42:51 wcvs Exp $
// This is part of Metakit, see http://www.equi4.com/metakit/

/** @file
 * Configuration header for MFC-based builds
 */

#define q4_MFC 1

#if q4_WIN && !q4_WIN32
#include <afxwin.h>
#else
#include <afxcoll.h>
#endif

#undef d4_assert
#define d4_assert ASSERT

#undef d4_assertThis
#define d4_assertThis d4_assert(AfxIsValidAddress(this, sizeof *this, FALSE))

#undef d4_new
#define d4_new DEBUG_NEW

typedef class CString   c4_String;
typedef class CPtrArray   c4_PtrArray;
typedef class CDWordArray c4_DWordArray;    
typedef class CStringArray  c4_StringArray;   

  // MSVC 1.52 thinks a typedef has no constructor, so use a define instead
#if !q4_OK && q4_MSVC && _MSC_VER == 800
#define c4_String CString
#endif