當前位置: 首頁>>代碼示例>>C++>>正文


C++ DEBUG_TRACE函數代碼示例

本文整理匯總了C++中DEBUG_TRACE函數的典型用法代碼示例。如果您正苦於以下問題:C++ DEBUG_TRACE函數的具體用法?C++ DEBUG_TRACE怎麽用?C++ DEBUG_TRACE使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了DEBUG_TRACE函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: DEBUG_TRACE

/** 
 * \todo Fix: doesn't work
 */
VOID CHudSA::SetZoneName( char * szName )
{
	DEBUG_TRACE("VOID CHudSA::SetZoneName( char * szName )");
	char * szZoneNamePtr = (char *)VAR_ZoneNamePtr;
	if(szName != 0)
	{
		if(strlen(szName) < 50)
		{
			strcpy(szZoneName, szName);
			szZoneNamePtr = szZoneName;
		}
	}
	else
	{
		*(DWORD *)VAR_ZoneNamePtr = 0;
	}
}
開發者ID:50p,項目名稱:multitheftauto,代碼行數:20,代碼來源:CHudSA.cpp

示例2: DEBUG_TRACE

CTaskSimpleJetPackSA::CTaskSimpleJetPackSA(const CVector *pVecTargetPos, float fCruiseHeight, int nHoverTime)
{
	DEBUG_TRACE("CTaskSimpleJetPackSA::CTaskSimpleJetPackSA(const CVector *pVecTargetPos = NULL, float fCruiseHeight = 10.0f, int nHoverTime = 0)");
	this->CreateTaskInterface(sizeof(CTaskSimpleJetPackSAInterface));
	DWORD dwFunc = FUNC_CTaskSimpleJetPack__Constructor;
	DWORD dwThisInterface = (DWORD)this->GetInterface();

	_asm
	{
		mov		ecx, dwThisInterface
		push	0				// pTargetEnt - ignored for simplicity's sake (we really don't need it)
		push	nHoverTime
		push	fCruiseHeight
		push	pVecTargetPos
		call	dwFunc
	}
}
開發者ID:Aephout14,項目名稱:m0d-s0beit-sa,代碼行數:17,代碼來源:TaskJumpFallSA.cpp

示例3: DEBUG_TRACE

/** 
 * \todo Fix: doesn't work
 */
VOID CHudSA::SetZoneName( char * szName )
{
    DEBUG_TRACE("VOID CHudSA::SetZoneName( char * szName )");
    char * szZoneNamePtr = (char *)VAR_ZoneNamePtr;
    if(szName != 0)
    {
        if(strlen(szName) < 50)
        {
            strcpy(szZoneName, szName);
            szZoneNamePtr = szZoneName;
        }
    }
    else
    {
        MemPutFast < DWORD > ( VAR_ZoneNamePtr, 0 );
    }
}
開發者ID:0x688,項目名稱:gtasa_crashfix,代碼行數:20,代碼來源:CHudSA.cpp

示例4: DEBUG_TRACE

VOID CCameraSA::RestoreWithJumpCut()
{
    DEBUG_TRACE("VOID CCameraSA::RestoreWithJumpCut()");
    CCameraSAInterface* cameraInterface = this->GetInterface();
    DWORD               dwFunc = 0x50BD40;
    _asm
    {
        mov     ecx, cameraInterface
        call    dwFunc
    }
    dwFunc = 0x50BAB0;
    _asm
    {
        mov     ecx, cameraInterface
        call    dwFunc
    }
}
開發者ID:Audifire,項目名稱:mtasa-blue,代碼行數:17,代碼來源:CCameraSA.cpp

示例5: NP_Initialize

/** 
 * Called only once, when the plugin is loaded.
 */
NPError NP_Initialize(NPNetscapeFuncs* browserFuncs)
{  
  DEBUG_TRACE("NP_Initialize");

  if (HIBYTE(browserFuncs->version) > NP_VERSION_MAJOR) {
    DEBUG_CRIT("Wrong API Version!");
    return NPERR_INCOMPATIBLE_VERSION_ERROR;    
  }

  if (browserFuncs->size < sizeof(NPNetscapeFuncs)) {
    DEBUG_CRIT("browserFuncs has wrong size!");
    return NPERR_INVALID_FUNCTABLE_ERROR;    
  }
  
  browser = browserFuncs;
  return NPERR_NO_ERROR;
}
開發者ID:emerose,項目名稱:Chrome-Crypt,代碼行數:20,代碼來源:ChromeCrypt.c

示例6: produce_socket

// Master thread adds accepted socket to a queue
static void produce_socket(struct mg_context *ctx, const struct socket *sp) {
  (void) pthread_mutex_lock(&ctx->mutex);

  // If the queue is full, wait
  while (ctx->sq_head - ctx->sq_tail >= (int) ARRAY_SIZE(ctx->queue)) {
    (void) pthread_cond_wait(&ctx->sq_empty, &ctx->mutex);
  }
  assert(ctx->sq_head - ctx->sq_tail < (int) ARRAY_SIZE(ctx->queue));

  // Copy socket to the queue and increment head
  ctx->queue[ctx->sq_head % ARRAY_SIZE(ctx->queue)] = *sp;
  ctx->sq_head++;
  DEBUG_TRACE(("queued socket %d", sp->sock));

  (void) pthread_cond_signal(&ctx->sq_full);
  (void) pthread_mutex_unlock(&ctx->mutex);
}
開發者ID:Metrological,項目名稱:dial-reference,代碼行數:18,代碼來源:mongoose.c

示例7: cry

// Print error message to the opened error log stream.
static void cry(struct mg_connection *conn, const char *fmt, ...) {
  char buf[BUFSIZ];
  va_list ap;

  va_start(ap, fmt);
  (void) vsnprintf(buf, sizeof(buf), fmt, ap);
  va_end(ap);

  // Do not lock when getting the callback value, here and below.
  // I suppose this is fine, since function cannot disappear in the
  // same way string option can.
  conn->request_info.log_message = buf;
  if (call_user(conn, MG_EVENT_LOG) == NULL) {
      DEBUG_TRACE(("[%s]", buf));
  }
  conn->request_info.log_message = NULL;
}
開發者ID:Metrological,項目名稱:dial-reference,代碼行數:18,代碼來源:mongoose.c

示例8: DEBUG_TRACE

int UCConfMgr::LeaveConf(void)
{
	DEBUG_TRACE("");
	
	if(0 == m_uiConfID)
	{	
		return UC_SDK_Success;
	}

	if(m_strChairManAccount == UCRegMgr::Instance().GetSelfAccount())
	{
		TUP_RESULT tRet = tup_call_serverconf_end(m_uiConfID);
		INFO_LOG("EndConf:ConfID=[%d]",m_uiConfID);
		if(tRet != TUP_SUCCESS)
		{
			ERROR_LOG("tup_call_serverconf_end failed.");
			return UC_SDK_Failed;
		}

		//同時刪除討論組
		(void)UCGroupMgr::Instance().DelGroup(m_strGroupID);
		UCGroupMgr::Instance().DelLocalGroup(m_strGroupID);
	}
	else
	{
		TUP_RESULT tRet = tup_call_serverconf_leave(m_uiConfID);
		INFO_LOG("LeaveConf:ConfID=[%d]",m_uiConfID);
		if(tRet != TUP_SUCCESS)
		{
			ERROR_LOG("tup_call_serverconf_leave failed.");
			return UC_SDK_Failed;
		}

		//離開討論組
		(void)UCGroupMgr::Instance().LeaveGroup(m_strGroupID);
		UCGroupMgr::Instance().DelLocalGroup(m_strGroupID);
		
	}

	//清空本地群組數據
	UCGroupMgr::Instance().ClearGroupMember();

	return UC_SDK_Success;

}
開發者ID:jinyeqing,項目名稱:esdk_uc_plugin_lync,代碼行數:45,代碼來源:UCConfMgr.cpp

示例9: DEBUG_TRACE

VOID CFireManagerSA::ExtinguishPoint ( CVector & vecPosition, float fRadius )
{
	DEBUG_TRACE("VOID CFireManagerSA::ExtinguishPoint ( CVector & vecPosition, float fRadius )");
	FLOAT fX = vecPosition.fX;
	FLOAT fY = vecPosition.fY;
	FLOAT fZ = vecPosition.fZ;
	DWORD dwFunction  = FUNC_ExtinguishPoint;
		
	_asm
	{
		mov		ecx, CLASS_CFireManager
		push	fRadius
		push	fZ
		push	fY
		push	fX
		call	dwFunction
	}
}
開發者ID:Aephout14,項目名稱:m0d-s0beit-sa,代碼行數:18,代碼來源:CFireManagerSA.cpp

示例10: spSDKApplication3

///////////////////////////////////////////////////////////////////////
///
/// @brief  此方法在阿裏旺旺初始化階段中,由阿裏旺旺調用而通知插件,表示插件被加載了
///
/// @param  __in IDispatch *pApplication   - 應用程序對象
/// @param  __in LONG lPluginCookie        - 插件標示
///
/// @retval HRESULT
///
/// 修改記錄: \n
///
///      <修改日期>     <修改者>   <修改內容描述>\n
///
///      2009-08-06      遊梟       創建\n
///
/// 備注信息: 
///
///////////////////////////////////////////////////////////////////////
STDMETHODIMP 
CRSSPlugin2::OnConnect(
                       __in IDispatch *pApplication, 
                       __in LONG lPluginCookie
                       )
{
    CComQIPtr<ISDKApplication3> spSDKApplication3(pApplication);
    if (spSDKApplication3)
    {
        g_spApplication3=spSDKApplication3;
    }

    DEBUG_TRACE(_T("CRssPlugin2::OnConnect"));

    g_plugincookie = lPluginCookie;

    return S_OK;
} 
開發者ID:testzzzz,項目名稱:hwccnet,代碼行數:36,代碼來源:RSSPlugin2.cpp

示例11: DEBUG_TRACE

int CTaskComplexWanderSA::GetWanderType()
{
    DEBUG_TRACE("int CTaskComplexWander::GetWanderType()");
    CTaskSAInterface *pTaskInterface = this->GetInterface();
    DWORD             dwFunc = ((TaskComplexWanderVTBL *)pTaskInterface->VTBL)->GetWanderType;
    int               iReturn = NO_WANDER_TYPE;

    if (dwFunc && dwFunc != 0x82263A)            // some tasks have no wander type 0x82263A is purecal (assert?)
    {
        _asm
        {
            mov     ecx, pTaskInterface
            call    dwFunc
            mov     iReturn, eax
        }
    }
    return iReturn;
}
開發者ID:Necktrox,項目名稱:mtasa-blue,代碼行數:18,代碼來源:TaskGoToSA.cpp

示例12: DEBUG_TRACE

void BeGadu::AddDeskbarIcon() {
	DEBUG_TRACE( "BeGadu::AddDeskbarIcon()\n" );
	BDeskbar deskbar;
	if( !deskbar.HasItem( "BGDeskbar" ) ) {
		BRoster roster;
		entry_ref ref;
		status_t status = roster.FindApp( APP_MIME, &ref );
		if( status != B_OK ) {
			fprintf( stderr, _T("Can't find BeGadu running: %s\n"), strerror( status ) );
			return;
		}
		status = deskbar.AddItem( &ref );
		if( status != B_OK ) {
			fprintf( stderr, _T("Can't put BeGadu into Deskbar: %s\n"), strerror( status ) );
			return;
		}
	}
}
開發者ID:louisdem,項目名稱:beos-begadu,代碼行數:18,代碼來源:BeGadu.cpp

示例13: DEBUG_TRACE

CPed* CPoolsSA::AddPed ( ePedModel ePedType )
{
    DEBUG_TRACE("CPed* CPoolsSA::AddPed ( ePedModel ePedType )");

    CPedSA* pPed = NULL;

    if ( m_pedPool.ulCount < MAX_PEDS )
    {
        pPed = new CPlayerPedSA ( ePedType );
        if ( ! AddPedToPool ( pPed ) )
        {
            delete pPed;
            pPed = NULL;
        }
    }

    return pPed;
}
開發者ID:50p,項目名稱:multitheftauto,代碼行數:18,代碼來源:CPoolsSA.cpp

示例14: DEBUG_TRACE

void CNetworkPlayer::GetRotation( CVector3 * vecRotation )
{
	DEBUG_TRACE("CNetworkPlayer::GetRotation");

	// Is the player ped valid?
	if( m_pPlayerPed && IsSpawned() )
	{
		// Get the player rotation
		Quaternion quatRotation;
		m_pPlayerPed->GetRotation( &quatRotation );

		// Copy the rotation eular angles
		memcpy( vecRotation, &quatRotation.toEularAngles(), sizeof(CVector3) );

		// Convert the rotation to degrees
		vecRotation->FromRadians();
	}
}
開發者ID:DarkKlo,項目名稱:maf2mp,代碼行數:18,代碼來源:CNetworkPlayer.cpp

示例15: DEBUG_TRACE

VOID CRegisteredCoronaSA::Init(DWORD Identifier)
{
	DEBUG_TRACE("VOID CRegisteredCoronaSA::Init(DWORD Identifier)");
	internalInterface->Identifier = Identifier;
	this->SetSize(2.5f);
	internalInterface->NormalAngle = 0.0f;
	internalInterface->Range = 450.0f;
	internalInterface->PullTowardsCam = 1.5f;
	internalInterface->Red = 255;
	internalInterface->Green = 55;
	internalInterface->Blue = 255;
	internalInterface->Intensity = 255;
	internalInterface->FadedIntensity = 255;
	internalInterface->FlareType = 0;
	internalInterface->ReflectionType = 1;
	internalInterface->JustCreated = 1;
	internalInterface->RegisteredThisFrame = 1; // won't appear in-game without this
}
開發者ID:Alambos,項目名稱:eXe,代碼行數:18,代碼來源:CRegisteredCoronaSA.cpp


注:本文中的DEBUG_TRACE函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。