limited win32 stack-trace size

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@46 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
spog
2006-04-09 18:16:41 +00:00
parent cdb5b8a5c8
commit 95ac019c00
19 changed files with 65 additions and 66 deletions

View File

@@ -23,6 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define INCLUDED_MODULESYSTEM_H
#include "generic/static.h"
#include "debugging/debugging.h"
#if defined(WIN32)
#define RADIANT_DLLEXPORT __stdcall
@@ -94,6 +95,16 @@ inline ModuleServer& globalModuleServer()
}
inline void initialiseModule(ModuleServer& server)
{
GlobalErrorStream::instance().setOutputStream(server.getErrorStream());
GlobalOutputStream::instance().setOutputStream(server.getOutputStream());
GlobalDebugMessageHandler::instance().setHandler(server.getDebugMessageHandler());
GlobalModuleServer::instance().set(server);
}
template<typename Type>
class Modules
{