Add Dirk Luetjen's ssphys libraries and command-line tool
[vss2svn.git] / ssphys / SSPhys / StdAfx.h
blob91953e5de206d053e38241452c00fed9422b5a7a
1 // stdafx.h : include file for standard system include files,
2 // or project specific include files that are used frequently, but
3 // are changed infrequently
4 //
6 #if !defined(AFX_STDAFX_H__2A1522EC_5D1E_4342_944F_2A3917F67CA6__INCLUDED_)
7 #define AFX_STDAFX_H__2A1522EC_5D1E_4342_944F_2A3917F67CA6__INCLUDED_
9 #if _MSC_VER > 1000
10 #pragma once
11 #endif // _MSC_VER > 1000
13 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
15 #include <stdio.h>
17 // TODO: reference additional headers your program requires here
18 #include "assert.h"
20 #pragma warning (disable: 4786)
21 #include <iostream>
22 #include <map>
23 #include <vector>
24 #include <string>
26 #include <boost\smart_ptr.hpp>
28 //---------------------------------------------------------------------------
29 #define countof(x) (sizeof(x) / sizeof(x[0]))
30 //#define RELEASE(x) if (x) (x)->Release ();
31 #define DELETE(x) { delete (x); x = NULL; }
33 typedef std::vector<std::string> StringVector;
35 //---------------------------------------------------------------------------
36 void Info (const char* message);
37 void Notice (const char* message);
38 void Warning (const char* message);
39 void Error (const char* message);
41 #define warn_if(x) (x) ? Warning (#x), false : true;
42 #define warn_with_msg_if(x,y) (x) ? Warning (y), false : true;
46 #include <SSPhysLib\SSexception.h>
51 //{{AFX_INSERT_LOCATION}}
52 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
54 #endif // !defined(AFX_STDAFX_H__2A1522EC_5D1E_4342_944F_2A3917F67CA6__INCLUDED_)