⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hxsym_dprintf.h

📁 著名的 helix realplayer 基于手机 symbian 系统的 播放器全套源代码
💻 H
字号:
/*****************************************************************************
 * hxsym_dprintf.h
 * ---------------
 *
 *
 * Target:
 * Symbian OS
 *
 *
 * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
 *
 *****************************************************************************/

#if !defined(HXSYM_DPRINTF_H__)
#define HXSYM_DPRINTF_H__

#if defined(HELIX_FEATURE_DPRINTF)

#if !defined HELIX_CONFIG_NOSTATICS
#error impossible on symbian
#endif

# include "globals/hxglobals.h"

// flags controlling dprint output
enum PrintFlags
{
    // prolog
    PRINT_DATE                  = 0x01, // include date
    PRINT_TIME                  = 0x02, // include time
    PRINT_TIME_INCLUDE_MS       = 0x04, // incude ms when writing timestamp
    PRINT_TID                   = 0x08  // include thread id
};

struct DPrintfData
{
    DPrintfData();
    UINT32      printFlags;
    UINT32      mask;
    UINT32      funcTraceMask;
    CHXString   sinkName;
};

inline DPrintfData::DPrintfData()
: printFlags(PRINT_TIME | PRINT_TIME_INCLUDE_MS | PRINT_TID)
, mask(0)
, funcTraceMask(0)
{}

DPrintfData* dprintfGetData();
UINT32 dprintfGetMask();
// for compatibility with older code (prefer DprintfData)
UINT32& debug_level();
UINT32& debug_func_level();

void dprintf(const char *, ... );
#define DPRINTF(mask,x) if (dprintfGetMask() & (mask)) dprintf x; else


#else // HELIX_FEATURE_DPRINTF

#define	DPRINTF(mask,x)

#endif // HELIX_FEATURE_DPRINTF

#endif //HXSYM_DPRINTF_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -