这篇教程C++ ERROR3IF函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中ERROR3IF函数的典型用法代码示例。如果您正苦于以下问题:C++ ERROR3IF函数的具体用法?C++ ERROR3IF怎么用?C++ ERROR3IF使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了ERROR3IF函数的23个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: ERROR3IFBOOL NodeAnimatingBitmap::AllocBitmapRefs(INT32 nCount){ ERROR3IF(m_pBmpRefs != 0, "Bitmaps already allocated in NodeAnimatingBitmap::AllocBitmapRefs"); ERROR3IF(nCount <= 0, "Invalid count in NodeAnimatingBitmap::AllocBitmapRefs"); m_pBmpRefs = new KernelBitmapRef[nCount]; return m_pBmpRefs != 0;}
开发者ID:vata,项目名称:xarino,代码行数:7,
示例2: sizeofActionCode LayerColourAction::Init( UndoableOperation* pOp, ActionList* pActionList, OpChangeLayerColourParam EntryParam){ UINT32 ActSize = sizeof(LayerColourAction); LayerColourAction* pNewAction; ActionCode Ac = Action::Init(pOp,pActionList,ActSize,CC_RUNTIME_CLASS(LayerColourAction),(Action**)&pNewAction); if (Ac != AC_FAIL && pNewAction != NULL) { OpChangeLayerColourParam& Param = ((LayerColourAction*)pNewAction)->Param; Document* pDoc = EntryParam.pDoc; Layer* pLayer = EntryParam.pLayer; Param.pDoc = pDoc; Param.pLayer = pLayer; if (pDoc != NULL && pLayer != NULL) { DocColour* pDocColour = pLayer->GetGuideColour(); Param.pColour = pDocColour->FindParentIndexedColour(); pLayer->SetGuideColour(EntryParam.pColour); LayerSGallery::ForceRedrawLayer(pDoc,pLayer); BROADCAST_TO_ALL(LayerMsg(pLayer,LayerMsg::GUIDELINES_CHANGED)); } ERROR3IF(pDoc == NULL, "pDoc is NULL"); ERROR3IF(pLayer == NULL,"pLayer is NULL"); } return Ac;}
开发者ID:Amadiro,项目名称:xara-cairo,代码行数:35,
示例3: ERROR3IFvoid ColourPlate::GetDescription(StringBase *Description){ ERROR3IF(Description == NULL, "Illegal NULL param"); *Description = TEXT(""); switch(GetType()) { case COLOURPLATE_CYAN: Description->MakeMsg(_R(IDS_COLOURPLATE_CYAN)); break; case COLOURPLATE_MAGENTA: Description->MakeMsg(_R(IDS_COLOURPLATE_MAGENTA)); break; case COLOURPLATE_YELLOW: Description->MakeMsg(_R(IDS_COLOURPLATE_YELLOW)); break; case COLOURPLATE_KEY: Description->MakeMsg(_R(IDS_COLOURPLATE_BLACK)); break; case COLOURPLATE_SPOT: { IndexedColour *Col = GetSpotColour(); ERROR3IF(Col == NULL, "NULL Spot colour in spot plate"); Description->MakeMsg(_R(IDS_COLOURPLATE_SPOT), (TCHAR *) *(Col->GetName()) ); } break; default: break; }}
开发者ID:Amadiro,项目名称:xara-cairo,代码行数:35,
示例4: ERROR3IFvoid PrintPrefsDlg::SetCurrentDlg(PrintPrefsDlg* pDlg){ ERROR3IF(pDlg != NULL && pCurrentDlg != NULL,"Setting current Dlg, but there's already one there"); ERROR3IF(pDlg == NULL && pCurrentDlg == NULL,"Setting current Dlg to NULL, but there's no current dlg"); pCurrentDlg = pDlg;}
开发者ID:vata,项目名称:xarino,代码行数:7,
示例5: ERROR3IFvoid OpNudge::PerformMergeProcessing(){ // Obtain a pointer to the operation history for the current document OperationHistory* pOpHist = &pOurDoc->GetOpHistory(); // Ensure that we are the last operation added to the operation history // Note cannot be an ERROR2 cos this function cannot fail. ERROR3IF(pOpHist->FindLastOp() != this, "Last Op should be this op"); // OK lets see if the operation performed before this was an OpNudge operation Operation* pPrevOp = pOpHist->FindPrevToLastOp(); if (pPrevOp != NULL) // Check if there was a previous op { if (IS_A(pPrevOp, OpNudge)) { // Yes it was // We can merge this op with pPrevOp if they both apply to the same set of objects // This will be TRUE is their SelectionStates are the same. RestoreSelectionsAction* pRestoreSelAct = (RestoreSelectionsAction*) GetUndoActionList()->FindActionOfClass(CC_RUNTIME_CLASS(RestoreSelectionsAction)); ERROR3IF(pRestoreSelAct == NULL, "This op should have a RestoreSelectionsAction"); SelectionState* ThisOpsSelection = pRestoreSelAct->GetSelState(); pRestoreSelAct = (RestoreSelectionsAction*) pPrevOp->GetUndoActionList()->FindActionOfClass(CC_RUNTIME_CLASS(RestoreSelectionsAction)); ERROR3IF(pRestoreSelAct == NULL, "OpNudge op should have a RestoreSelectionsAction"); SelectionState* LastOpsSelection = pRestoreSelAct->GetSelState(); if ((*ThisOpsSelection) == (*LastOpsSelection)) { // scan to see if either of these ops hides a node // if either do then we cannot merge them together // this can happen if perhaps the extending definitions // were changed by the nudge (sjk 27-7-00) if (DoesActionListHideNodes(pPrevOp) || DoesActionListHideNodes(this) ) return; // this op can be merged into the previous op, we simply need to combine the // TransformNodeActions TransformNodeAction* pTransNdAct = (TransformNodeAction*) GetUndoActionList()->FindActionOfClass(CC_RUNTIME_CLASS(TransformNodeAction)); ERROR3IF(pTransNdAct == NULL, "This op should have a TransformNodeAction"); TransformNodeAction* pLastOpsTransNdAct = (TransformNodeAction*) pPrevOp->GetUndoActionList()->FindActionOfClass(CC_RUNTIME_CLASS(TransformNodeAction)); ERROR3IF(pLastOpsTransNdAct == NULL,"OpNudgeOp should have a TransformNodeAction"); pLastOpsTransNdAct->CombineWith(pTransNdAct); // This op is no longer required, so let's vape it pOpHist->DeleteLastOp(); } } } return;}
开发者ID:vata,项目名称:xarino,代码行数:59,
示例6: ERROR3IFvoid String_32::CopyConstruct( const StringBase &other ){ *(text = fixedbuf) = 0; length = FIX_LEN_BUFSIZE; ERROR3IF((const TCHAR*) other == 0, "StringBase to be copied has not been ALLOCated"); ERROR3IF(camStrlen((const TCHAR*) other) >= length, "Constructed String_32 not large enough to hold StringBase copy"); camStrcpy(text, (const TCHAR*) other);}
开发者ID:Amadiro,项目名称:xara-cairo,代码行数:9,
示例7: ERROR2IFBOOL BfxPixelOp::SetAuxilliaryBitmaps(KernelBitmap * pProposed /*A*/, KernelBitmap * pCurrent /*B*/, KernelBitmap * pOriginal /*T*/, INT32 Threshold, DWORD theColour){ if (pProposed) { ERROR2IF( (pProposed->ActualBitmap==NULL) ,FALSE,"BfxPixelOp can't find OIL bitmap"); ERROR3IF( (!(pProposed->ActualBitmap->IsKindOf(CC_RUNTIME_CLASS(CWxBitmap)) )),"BfxPixelOp Oil layer inconsistency"); BITMAPINFOHEADER * pBMI=&(((CWxBitmap *)(pProposed->ActualBitmap))->BMInfo->bmiHeader); ERROR2IF( ((pBMI->biHeight != Height) || (pBMI->biWidth != Width) || (BPP && pBMI->biBitCount !=BPP)), FALSE, "Incompatible bitmaps for BfxPixelOp::SetAuxilliaryBitmap"); pA = (DWORD *)(void *)(((CWxBitmap *)(pProposed->ActualBitmap))->BMBytes); } else { pA = NULL; } if (pOriginal) { ERROR2IF( (pOriginal->ActualBitmap==NULL) ,FALSE,"BfxPixelOp can't find OIL bitmap"); ERROR3IF( (!(pOriginal->ActualBitmap->IsKindOf(CC_RUNTIME_CLASS(CWxBitmap)) )),"BfxPixelOp Oil layer inconsistency"); BITMAPINFOHEADER * pBMI=&(((CWxBitmap *)(pOriginal->ActualBitmap))->BMInfo->bmiHeader); ERROR2IF( ((pBMI->biHeight != Height) || (pBMI->biWidth != Width) || (BPP && pBMI->biBitCount !=BPP)), FALSE, "Incompatible bitmaps for BfxPixelOp::SetAuxilliaryBitmap"); pT = (DWORD *)(void *)(((CWxBitmap *)(pOriginal->ActualBitmap))->BMBytes); } else { pT = NULL; } if (pCurrent) { ERROR2IF( (pCurrent->ActualBitmap==NULL) ,FALSE,"BfxPixelOp can't find OIL bitmap"); ERROR3IF( (!(pCurrent->ActualBitmap->IsKindOf(CC_RUNTIME_CLASS(CWxBitmap)) )),"BfxPixelOp Oil layer inconsistency"); BITMAPINFOHEADER * pBMI=&(((CWxBitmap *)(pCurrent->ActualBitmap))->BMInfo->bmiHeader); ERROR2IF( ((pBMI->biHeight != Height) || (pBMI->biWidth != Width) || (BPP && pBMI->biBitCount !=BPP)), FALSE, "Incompatible bitmaps for BfxPixelOp::SetAuxilliaryBitmap"); pB = (DWORD *)(void *)(((CWxBitmap *)(pCurrent->ActualBitmap))->BMBytes); } else { pB = NULL; } Value = Threshold; Colour = theColour; return TRUE;}
开发者ID:UIKit0,项目名称:xara-xtreme,代码行数:56,
示例8: ERROR3IFvoid BitmapExportPaletteInterface::SetFlags(INT32 index, INT32 flags){ if (!m_SortedPaletteValid) ValidateSortedPalette(); ERROR3IF(index == -1, "Function called with an invalid palette index"); ExtendedPalette *palette = BmapPrevDlg::m_pExportOptions->GetExtendedPalette(); ERROR3IF(!palette, "There is no palette - This should never happen"); palette->Data[m_PaletteSortedToReal[index]].Flags = flags;}
开发者ID:Amadiro,项目名称:xara-cairo,代码行数:10,
示例9: Jonathan_Payne/******************************************************************************************> INT32 BitmapExportPaletteInterface::HueComparisonFn(const INT32 *arg1, const INT32 *arg2) Author: Jonathan_Payne (Xara Group Ltd) <[email C++ ERRORF函数代码示例 C++ ERROR2IF函数代码示例
|