您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DEBUG_ASSERT函数代码示例

51自学网 2021-06-01 20:19:38
  C++
这篇教程C++ DEBUG_ASSERT函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DEBUG_ASSERT函数的典型用法代码示例。如果您正苦于以下问题:C++ DEBUG_ASSERT函数的具体用法?C++ DEBUG_ASSERT怎么用?C++ DEBUG_ASSERT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了DEBUG_ASSERT函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: DEBUG_ASSERT

SINT SoundSourceWV::seekSampleFrame(SINT frameIndex) {    DEBUG_ASSERT(isValidFrameIndex(m_curFrameIndex));    if (frameIndex >= getMaxFrameIndex()) {        // EOF reached        m_curFrameIndex = getMaxFrameIndex();        return m_curFrameIndex;    }    if (frameIndex == m_curFrameIndex) {        return m_curFrameIndex;    }    if (WavpackSeekSample(m_wpc, frameIndex) == true) {        m_curFrameIndex = frameIndex;        return frameIndex;    } else {        kLogger.debug() << "could not seek to frame #" << frameIndex;        return WavpackGetSampleIndex(m_wpc);    }}
开发者ID:PeteDevoy,项目名称:mixxx,代码行数:21,


示例2: DEBUG_ASSERT

void Foreman::initialize() {  if (cpu_id_ >= 0) {    // We can pin the foreman thread to a CPU if specified.    ThreadUtil::BindToCPU(cpu_id_);  }  DEBUG_ASSERT(query_dag_ != nullptr);  initializeState();  // Collect all the workorders from all the relational operators in the DAG.  const dag_node_index dag_size = query_dag_->size();  for (dag_node_index index = 0; index < dag_size; ++index) {    if (checkAllBlockingDependenciesMet(index)) {      query_dag_->getNodePayloadMutable(index)->informAllBlockingDependenciesMet();      processOperator(index, false);    }  }  // Dispatch the WorkOrders generated so far.  dispatchWorkerMessages(0, 0);}
开发者ID:siddharthsmenon,项目名称:quickstep,代码行数:21,


示例3: cbuf_write_char

size_t cbuf_write_char(cbuf_t *cbuf, char c, bool canreschedule){	DEBUG_ASSERT(cbuf);	enter_critical_section();	size_t ret = 0;	if (cbuf_space_avail(cbuf) > 0) {		cbuf->buf[cbuf->head] = c;		cbuf->head = INC_POINTER(cbuf, cbuf->head, 1);		ret = 1;		if (cbuf->head != cbuf->tail)			event_signal(&cbuf->event, canreschedule);	}	exit_critical_section();	return ret;}
开发者ID:danscu,项目名称:lk,代码行数:21,


示例4: DEBUG_ASSERT

// This removes |node| from the list whose first node is |list_head|.  This// returns the new list head, or nullptr if the list has become empty.FutexNode* FutexNode::RemoveNodeFromList(FutexNode* list_head,                                         FutexNode* node) {    if (node->queue_next_ == node) {        DEBUG_ASSERT(node->queue_prev_ == node);        // This list is a singleton, so after removing the node, the list        // becomes empty.        list_head = nullptr;    } else {        if (node == list_head) {            // This node is the list head, so adjust the list head to be            // the next node.            list_head = node->queue_next_;        }        // Remove the node from the list.        node->queue_next_->queue_prev_ = node->queue_prev_;        node->queue_prev_->queue_next_ = node->queue_next_;    }    node->MarkAsNotInQueue();    return list_head;}
开发者ID:saltstar,项目名称:smartnix,代码行数:23,


示例5: DEBUG_ASSERT

HRESULT CUIElement::GetRoot(IUIElement** ppRoot){	DEBUG_ASSERT(ppRoot) ;	IF_RETURN(NULL == ppRoot, E_INVALIDARG) ;	*ppRoot = NULL ;	CComPtr<IUIElement> pParentTemp = GetEntity<IUIElement>() ;	while (pParentTemp)	{		CComPtr<IUIElement> pElement ;		pParentTemp->GetParent(&pElement) ;		IF_BREAK(NULL == pElement) ;		pParentTemp = pElement ;	}	if (pParentTemp)	{		return pParentTemp->QueryInterface(__uuidof(IUIElement), (VOID**)ppRoot) ;	}	return E_FAIL ;}
开发者ID:jellychen,项目名称:windows_directui,代码行数:21,


示例6: cbuf_write_char

size_t cbuf_write_char(cbuf_t* cbuf, char c) {    DEBUG_ASSERT(cbuf);    size_t ret = 0;    {        AutoSpinLock guard(&cbuf->lock);        if (cbuf_space_avail(cbuf) > 0) {            cbuf->buf[cbuf->head] = c;            cbuf->head = inc_pointer(cbuf, cbuf->head, 1);            ret = 1;        }    }    if (ret > 0) {        event_signal(&cbuf->event, true);    }    return ret;}
开发者ID:saltstar,项目名称:smartnix,代码行数:21,


示例7: archi_variabledef_typecheck

archi_symtab_idlist* archi_variabledef_typecheck( archi_symtab *st, archi_ast_node *n, const char* id, archi_symtab_idlist *type_list ){  DEBUG_ASSERT( st && n && id && type_list ) ;  while( type_list ){    if( !strcmp(n->data_type, archi_symtab_idlist_id(type_list)) ){      archi_ast_node *l = archi_symtab_lookup( st, id ) ;      if( l != NULL ){          EMSG_REDECLARATION( n, id ) ;        EMSG_PREVIOUS_DECLARATION( n, id, l->linenr ) ;        break ;      }      else{ archi_symtab_insert( st, id, n ) ; break ;}        }    type_list = archi_symtab_idlist_next(type_list) ;  }  if( !type_list ) EMSG_WRONG_TYPE( n, id, " " ) ;  return type_list ;}
开发者ID:phate,项目名称:Archi,代码行数:21,


示例8: arm_mmu_init

void arm_mmu_init(void){    /* unmap the initial mapings that are marked temporary */    struct mmu_initial_mapping *map = mmu_initial_mappings;    while (map->size > 0) {        if (map->flags & MMU_INITIAL_MAPPING_TEMPORARY) {            vaddr_t va = map->virt;            size_t size = map->size;            DEBUG_ASSERT(IS_SECTION_ALIGNED(size));            while (size > 0) {                arm_mmu_unmap_section(va);                va += MB;                size -= MB;            }        }        map++;    }    arm_after_invalidate_tlb_barrier();}
开发者ID:taphier,项目名称:lk,代码行数:21,


示例9: switch

std::string StageStart::GetClearAnimStr(){	const GameManager *pGameManager = GameRegister::GetInstance()->GetManagerGame();	std::string retStr = "";	switch( pGameManager->GetStageType() ){	default:		DEBUG_ASSERT( 0, "ゲ
C++ DEBUG_CALL函数代码示例
C++ DEBUG_ARG函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。