Why the hell are people so terrified of namespaces?
//SysLogger.h
namespace SysLogger {
extern int loggedItems;
int initialize(char* somedata, int someother);
void logSomething(char* herpderp);
};
//SysLogger.cpp
#include "SysLogger.h"
int SysLogger::loggedItems = 0;
static int fd = -1;
static int miscHelperFunction() {
return foo;
}
int SysLogger::initialize(char* somedata, int someother) {
herpderpSystem = new Foo;
fd = herpderpSystem->makeLogFile();
return 4;
}
void SysLogger::logSomething(char* herpderp) {
loggit(fd, herpderp);
++loggedItems;
}