mirror of
https://github.com/glest/glest-source.git
synced 2025-09-25 23:19:07 +02:00
- bugfixes for malformed debug statements
- updated version to 3.3.5.1 - added more null checks - changes to try to fix crash when ending a game (delete cells bug)
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <map>
|
||||
#include "thread.h"
|
||||
#include <curl/curl.h>
|
||||
#include <cstdio>
|
||||
|
||||
using std::string;
|
||||
using namespace Shared::Platform;
|
||||
@@ -130,6 +131,9 @@ public:
|
||||
|
||||
#ifndef WIN32
|
||||
#define OutputDebug(type, fmt, ...) SystemFlags::handleDebug (type, fmt, ##__VA_ARGS__)
|
||||
// Uncomment the line below to get the compiler to warn us of badly formatted printf like statements which could trash memory
|
||||
//#define OutputDebug(type, fmt, ...) type; printf(fmt, ##__VA_ARGS__)
|
||||
|
||||
#else
|
||||
#define OutputDebug(type, fmt, ...) handleDebug (type, fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user