// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #ifndef _FACTORY_INL_ #define _FACTORY_INL_ #include "factory.h" template PRODUCT* InlineFactory::Create() { WRAPPER_NO_CONTRACT; if (m_cProduct == MAX_FACTORY_PRODUCT) { InlineFactory* pNext = GetNext(); if (pNext) { return pNext->Create(); } else { return NULL; } } return &m_product[m_cProduct++]; } #endif