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


C++ COMPILE_ASSERT函數代碼示例

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


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

示例1: ASSERT_GC_OBJECT_INHERITS

void RegExpConstructor::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    RegExpConstructor* thisObject = jsCast<RegExpConstructor*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());

    Base::visitChildren(thisObject, visitor);
    thisObject->m_cachedResult.visitChildren(visitor);
}
開發者ID:dog-god,項目名稱:iptv,代碼行數:10,代碼來源:RegExpConstructor.cpp

示例2: ASSERT_GC_OBJECT_INHERITS

void JSTestSerializedScriptValueInterface::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSTestSerializedScriptValueInterface* thisObject = jsCast<JSTestSerializedScriptValueInterface*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);
    visitor.append(&thisObject->m_cachedValue);
    visitor.append(&thisObject->m_cachedReadonlyValue);
}
開發者ID:yoavweiss,項目名稱:RespImg-WebKit,代碼行數:10,代碼來源:JSTestSerializedScriptValueInterface.cpp

示例3: ASSERT_GC_OBJECT_INHERITS

void JSDOMWindowShell::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSDOMWindowShell* thisObject = static_cast<JSDOMWindowShell*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);
    if (thisObject->m_window)
        visitor.append(&thisObject->m_window);
}
開發者ID:vizcount,項目名稱:work,代碼行數:10,代碼來源:JSDOMWindowShell.cpp

示例4: ASSERT_GC_OBJECT_INHERITS

void DebuggerActivation::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    DebuggerActivation* thisObject = jsCast<DebuggerActivation*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, info());
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());

    JSObject::visitChildren(thisObject, visitor);
    visitor.append(&thisObject->m_activation);
}
開發者ID:KnightSwarm,項目名稱:WebKitTi,代碼行數:10,代碼來源:DebuggerActivation.cpp

示例5: ASSERT_GC_OBJECT_INHERITS

void UnlinkedProgramCodeBlock::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    UnlinkedProgramCodeBlock* thisObject = jsCast<UnlinkedProgramCodeBlock*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, info());
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);
    for (size_t i = 0, end = thisObject->m_functionDeclarations.size(); i != end; i++)
        visitor.append(&thisObject->m_functionDeclarations[i].second);
}
開發者ID:MYSHLIFE,項目名稱:webkit,代碼行數:10,代碼來源:UnlinkedCodeBlock.cpp

示例6: ASSERT_GC_OBJECT_INHERITS

void ProgramExecutable::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    ProgramExecutable* thisObject = static_cast<ProgramExecutable*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    ScriptExecutable::visitChildren(thisObject, visitor);
    if (thisObject->m_programCodeBlock)
        thisObject->m_programCodeBlock->visitAggregate(visitor);
}
開發者ID:vizcount,項目名稱:work,代碼行數:10,代碼來源:Executable.cpp

示例7: sec_rom_info_init

void sec_rom_info_init (void)
{
    COMPILE_ASSERT(AND_ROM_INFO_SIZE == sizeof(AND_ROMINFO_T));
    SMSG("[%s] 'v%d','0x%x','0x%x','0x%x','0x%x'\n",
                                            MOD,  g_ROM_INFO.m_rom_info_ver,
                                            g_ROM_INFO.m_sec_cfg_offset,
                                            g_ROM_INFO.m_sec_cfg_length,
                                            g_ROM_INFO.m_sec_ro_offset,
                                            g_ROM_INFO.m_sec_ro_length);
}
開發者ID:zunaid321,項目名稱:ThunderStrike,代碼行數:10,代碼來源:sec_rom_info.c

示例8: ASSERT_GC_OBJECT_INHERITS

void JSWrapperObject::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSWrapperObject* thisObject = jsCast<JSWrapperObject*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());

    JSObject::visitChildren(thisObject, visitor);
        visitor.append(&thisObject->m_internalValue);
}
開發者ID:166MMX,項目名稱:openjdk.java.net-openjfx-8u40-rt,代碼行數:10,代碼來源:JSWrapperObject.cpp

示例9: ASSERT_GC_OBJECT_INHERITS

void JSSharedWorker::visitChildren(SlotVisitor& visitor)
{
    ASSERT_GC_OBJECT_INHERITS(this, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(visitor);

    if (MessagePort* port = impl()->port())
        visitor.addOpaqueRoot(port);
}
開發者ID:mulriple,項目名稱:Webkit-Projects,代碼行數:10,代碼來源:JSSharedWorkerCustom.cpp

示例10: ASSERT_GC_OBJECT_INHERITS

void JSNameScope::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSNameScope* thisObject = jsCast<JSNameScope*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());

    Base::visitChildren(thisObject, visitor);
    visitor.append(&thisObject->m_registerStore);
}
開發者ID:SchleunigerAG,項目名稱:WinEC7_Qt5.3.1_Fixes,代碼行數:10,代碼來源:JSNameScope.cpp

示例11: ASSERT_GC_OBJECT_INHERITS

void JSSetIterator::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSSetIterator* thisObject = jsCast<JSSetIterator*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, info());
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
        
    Base::visitChildren(thisObject, visitor);
    visitor.append(&thisObject->m_iteratedObjectData);
}
開發者ID:604339917,項目名稱:JavaScriptCore-iOS-1,代碼行數:10,代碼來源:JSSetIterator.cpp

示例12: ASSERT_GC_OBJECT_INHERITS

void JSCanvasRenderingContext::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSCanvasRenderingContext* thisObject = jsCast<JSCanvasRenderingContext*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);

    visitor.addOpaqueRoot(root(thisObject->impl()->canvas()));
}
開發者ID:166MMX,項目名稱:openjdk.java.net-openjfx-8u40-rt,代碼行數:10,代碼來源:JSCanvasRenderingContextCustom.cpp

示例13: ASSERT_GC_OBJECT_INHERITS

void RegExpObject::visitChildren(SlotVisitor& visitor)
{
    ASSERT_GC_OBJECT_INHERITS(this, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(visitor);
    if (d->regExp)
        visitor.append(&d->regExp);
    if (UNLIKELY(!d->lastIndex.get().isInt32()))
        visitor.append(&d->lastIndex);
}
開發者ID:emuikernel,項目名稱:EAWebKit,代碼行數:11,代碼來源:RegExpObject.cpp

示例14: ASSERT_GC_OBJECT_INHERITS

void JSSharedWorker::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSSharedWorker* thisObject = jsCast<JSSharedWorker*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);

    if (MessagePort* port = thisObject->impl()->port())
        visitor.addOpaqueRoot(port);
}
開發者ID:Moondee,項目名稱:Artemis,代碼行數:11,代碼來源:JSSharedWorkerCustom.cpp

示例15: ASSERT_GC_OBJECT_INHERITS

void JSTreeWalker::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSTreeWalker* thisObject = jsCast<JSTreeWalker*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, info());
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);

    if (NodeFilter* filter = thisObject->m_impl->filter())
        visitor.addOpaqueRoot(filter);
}
開發者ID:CannedFish,項目名稱:webkitgtk,代碼行數:11,代碼來源:JSTreeWalkerCustom.cpp


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