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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user