1 //
2 // Copyright 2002 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 #include "compiler/translator/InitializeDll.h"
8 #include "compiler/translator/InitializeGlobals.h"
9 
10 #include "common/platform.h"
11 
12 #include <assert.h>
13 
14 namespace sh
15 {
16 
InitProcess()17 bool InitProcess()
18 {
19     if (!InitializePoolIndex())
20     {
21         assert(0 && "InitProcess(): Failed to initalize global pool");
22         return false;
23     }
24 
25     return true;
26 }
27 
DetachProcess()28 void DetachProcess()
29 {
30     FreePoolIndex();
31 }
32 
33 }  // namespace sh
34