当前位置: 首页>>代码示例>>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;未经允许,请勿转载。