Edit

kc3-lang/angle/src/compiler/translator/InitializeDll.cpp

Branch :

  • Show log

    Commit

  • Author : Kai Ninomiya
    Date : 2017-11-22 14:04:48
    Hash : 614dd0f5
    Message : Replace TCache with static TType instances Replaces TCache with (static generation + static/dynamic lookups) of TType instances, using compile-time template and constexpr magic. Work started by jmadill here: https://crrev.com/c/776280 With more contributions from jmadill here: https://crrev.com/c/801494 Bug: angleproject:1432 Change-Id: I07181543f8fee4b2606cdd2d0738351e83d4ce57 Reviewed-on: https://chromium-review.googlesource.com/786317 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/compiler/translator/InitializeDll.cpp
  • //
    // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    #include "compiler/translator/InitializeDll.h"
    #include "compiler/translator/InitializeGlobals.h"
    
    #include "common/platform.h"
    
    #include <assert.h>
    
    namespace sh
    {
    
    bool InitProcess()
    {
        if (!InitializePoolIndex())
        {
            assert(0 && "InitProcess(): Failed to initalize global pool");
            return false;
        }
    
        return true;
    }
    
    void DetachProcess()
    {
        FreePoolIndex();
    }
    
    }  // namespace sh