Open main menu

Difference between revisions of "HOWTO-Engines"

173 bytes removed ,  23:57, 14 February 2006
m (last for now I promise! :))
Line 45: Line 45:
// our engine debug levels
// our engine debug levels
enum {
enum {
kQuuxDebugExample = 1,
kQuuxDebugExample = 1 << 0,
kQuuxDebugExample2 = 2
kQuuxDebugExample2 = 1 << 1
// next must be 4, because the debug levels must be able to be combined with OR
// next new level must be 1 << 2 (4)
// and again be extracted with AND and for example 3 could be then kQuuxDebugExample or
// the current limitation is 32 debug levels (1 << 31 is the last one)
// kQuuxDebugExample2, that should be only used then a call should be printed when at least
// one of both is specified
};
};


Line 66: Line 64:
#endif
#endif
</pre>
</pre>


=== Example: engines/quux/quux.cpp ===
=== Example: engines/quux/quux.cpp ===
561

edits