Difference between revisions of "HOWTO-Engines"

Jump to navigation Jump to search
4 bytes removed ,  13:39, 4 January 2011
Replaced all printf() calls (which we no longer support directly) with debug() calls
(→‎Common portability issues: Mention strcasecmp/strncasecmp too, for the people with an UNIX background)
(Replaced all printf() calls (which we no longer support directly) with debug() calls)
Line 187: Line 187:
g_eventRec.registerRandomSource(_rnd, "quux");
g_eventRec.registerRandomSource(_rnd, "quux");
   
   
printf("QuuxEngine::QuuxEngine\n");
debug("QuuxEngine::QuuxEngine\n");
}
}
   
   
QuuxEngine::~QuuxEngine() {
QuuxEngine::~QuuxEngine() {
// Dispose your resources here
// Dispose your resources here
printf("QuuxEngine::~QuuxEngine\n");
debug("QuuxEngine::~QuuxEngine\n");
   
   
// Remove all of our debug levels here
// Remove all of our debug levels here
Line 221: Line 221:
   
   
// Additional setup.
// Additional setup.
printf("QuuxEngine::init\n");
debug("QuuxEngine::init\n");
   
   
// Your main even loop should be (invoked from) here.
// Your main even loop should be (invoked from) here.
printf("QuuxEngine::go: Hello, World!\n");
debug("QuuxEngine::go: Hello, World!\n");
   
   
// This test will show up if -d1 and --debugflags=example are specified on the commandline
// This test will show up if -d1 and --debugflags=example are specified on the commandline
1,489

edits

Navigation menu