forked from 0ad/0ad
19 lines
402 B
C++
19 lines
402 B
C++
#include "precompiled.h"
|
|
|
|
#include "MessageHandler.h"
|
|
|
|
namespace AtlasMessage
|
|
{
|
|
|
|
msgHandlers& GetMsgHandlers()
|
|
{
|
|
// Make sure this is initialised when it's first required, rather than
|
|
// hoping to be lucky with static initialisation order.
|
|
// (TODO: But is it safe to be sticking things into STL containers during
|
|
// static initialisation?)
|
|
static msgHandlers h;
|
|
return h;
|
|
}
|
|
|
|
}
|