1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/src/compiler/InitializeDll.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +// 1.5 +// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. 1.6 +// Use of this source code is governed by a BSD-style license that can be 1.7 +// found in the LICENSE file. 1.8 +// 1.9 + 1.10 +#include "compiler/InitializeDll.h" 1.11 + 1.12 +#include "compiler/InitializeGlobals.h" 1.13 +#include "compiler/InitializeParseContext.h" 1.14 +#include "compiler/osinclude.h" 1.15 + 1.16 +bool InitProcess() 1.17 +{ 1.18 + if (!InitializePoolIndex()) { 1.19 + assert(0 && "InitProcess(): Failed to initalize global pool"); 1.20 + return false; 1.21 + } 1.22 + 1.23 + if (!InitializeParseContextIndex()) { 1.24 + assert(0 && "InitProcess(): Failed to initalize parse context"); 1.25 + return false; 1.26 + } 1.27 + 1.28 + return true; 1.29 +} 1.30 + 1.31 +void DetachProcess() 1.32 +{ 1.33 + FreeParseContextIndex(); 1.34 + FreePoolIndex(); 1.35 +}