int main(int argc, char **argv)
{
using namespace wwE;
// i use exceptions so some try {} catch () {} stuff is also in here
// i omitted it to make things simpler
CLogManager::GetSingleton()->CreateDefaultLog(/* ... */);
CRoot* pRoot = CRoot::GetSingleton(); // this line creates an instance of CRoot,
// and its ctor will log anything it wants to successfully,
// because the default log is already created
// the rest of the code goes here
return 0;
} the problem with this is that it makes me wonder the whole purpose of CRoot::GetSingleton()->GetSomeManager(), if you can just call CSomeManager::GetSingleton(). so i don't know what's better. =/
if anyone can suggest another solution, which is better than the two above, or help me decide on what to do, i would really appreciate it! shurcool
wwdev [edited by - shurcool on August 13, 2002 6:17:47 PM]