Open main menu

Difference between revisions of "HOWTO-Engines"

6 bytes added ,  18:36, 1 June 2011
→‎Example: engines/quux/quux.h: debug levels -> channels
(→‎Example: engines/quux/quux.cpp: Add missing include)
(→‎Example: engines/quux/quux.h: debug levels -> channels)
Line 117: Line 117:
class Console;
class Console;
   
   
// our engine debug levels
// our engine debug channels
enum {
enum {
kQuuxDebugExample = 1 << 0,
kQuuxDebugExample = 1 << 0,
kQuuxDebugExample2 = 1 << 1
kQuuxDebugExample2 = 1 << 1
// next new level must be 1 << 2 (4)
// next new channel must be 1 << 2 (4)
// the current limitation is 32 debug levels (1 << 31 is the last one)
// the current limitation is 32 debug channels (1 << 31 is the last one)
};
};
   
   
178

edits