Ok, forgot about multiple definitions... will fix in a minute.
EDIT:
With the header being included a thousand times, it gets slightly more complicated, i.e. a
.cpp file and an
extern declaration are needed, but... it works
As a sidenote, doing a global file search for
NULL, I noticed that
NULL in Code::Blocks occurs in a lot of places where it is actually useless in my opinion, such as in all manager classes:
EditorColourSet* GetColourSet(){ return (this==NULL) ? 0 : m_Theme; }Unless I have a gross misunderstanding,
this cannot possibly be
NULL, as all managers are singleton classes. Even if there was the possibility of calling a non-static member function on an uninitialised object, then
this would not necessarily be
NULL either (but some random, uninitialised value).