- Added CF_HELPER category
- Updated DUMP_INIT to automatically add the CF_DUMP category git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3832 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -52,8 +52,9 @@ enum _DebugCategoryFlags {
|
|||||||
|
|
||||||
// Misc categories
|
// Misc categories
|
||||||
CF_HIGH_VOLUME = 0x00000200, //!< often-called functions
|
CF_HIGH_VOLUME = 0x00000200, //!< often-called functions
|
||||||
CF_DEBUGGING = 0x00000400, //!< internal debugging functions
|
CF_HELPER = 0x00000400, //!< helper functions and classes (i.e. Array, CS0String, etc.)
|
||||||
CF_DUMP = 0x00000800, //!< dump() functions
|
CF_DEBUGGING = 0x00000800, //!< internal debugging functions
|
||||||
|
CF_DUMP = 0x00001000, //!< dump() functions
|
||||||
|
|
||||||
//-------------------------------
|
//-------------------------------
|
||||||
|
|
||||||
@@ -71,6 +72,7 @@ enum _DebugCategoryFlags {
|
|||||||
*/
|
*/
|
||||||
#define CATEGORY_FILTER CF_ALL
|
#define CATEGORY_FILTER CF_ALL
|
||||||
//#define CATEGORY_FILTER ~CF_DUMP
|
//#define CATEGORY_FILTER ~CF_DUMP
|
||||||
|
//#define CATEGORY_FILTER ~CF_DUMP & ~CF_HIGH_VOLUME
|
||||||
//#define CATEGORY_FILTER CF_ALL_STANDARD
|
//#define CATEGORY_FILTER CF_ALL_STANDARD
|
||||||
//#define CATEGORY_FILTER CF_ENTRY
|
//#define CATEGORY_FILTER CF_ENTRY
|
||||||
//#define CATEGORY_FILTER (CF_ENTRY | CF_PUBLIC)
|
//#define CATEGORY_FILTER (CF_ENTRY | CF_PUBLIC)
|
||||||
@@ -141,7 +143,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define DUMP_INIT(categoryFlags, className) \
|
#define DUMP_INIT(categoryFlags, className) \
|
||||||
DEBUG_INIT_SILENT(categoryFlags, className);
|
DEBUG_INIT_SILENT((categoryFlags) | CF_DUMP , className);
|
||||||
|
|
||||||
#define PRINT(x) { \
|
#define PRINT(x) { \
|
||||||
if ((_debugHelper.CategoryFlags() & CATEGORY_FILTER) \
|
if ((_debugHelper.CategoryFlags() & CATEGORY_FILTER) \
|
||||||
|
|||||||
Reference in New Issue
Block a user