Minor project cleanup:

- Consolidated duplicate PSP / PSPENV defines;
- removed some ancillary file crap from the 2010 projects;
- pulled 1xx references from the makefiles;
- consolidated multiple #defines for OutputDebugString into one header (previously was split between config.h & DebugRoutines.h).
This commit is contained in:
wrenczes@gmail.com
2011-04-22 13:12:36 +00:00
parent 1827e99780
commit ae227a7cb8
10 changed files with 15 additions and 50 deletions

View File

@@ -21,6 +21,10 @@ std::string ToHex(T* pointer)
return stream.str();
}
#ifdef LINUX
#define OutputDebugString(val) (std::cerr << val);
#endif
#if defined (WIN32) || defined (LINUX)
#ifdef _DEBUG
@@ -29,7 +33,7 @@ std::string ToHex(T* pointer)
{ \
std::ostringstream stream; \
stream << inString << std::endl; \
OutputDebugString(stream.str().c_str()); \
OutputDebugString(stream.str().c_str()); \
}
#else
#define DebugTrace(inString) \
@@ -47,7 +51,7 @@ std::string ToHex(T* pointer)
#ifndef DebugTrace
#define DebugTrace(inString) \
{ \
std::cout << inString << std::endl; \
std::cerr << inString << std::endl; \
}
#endif //DEBUG
#endif