Olli Etuaho | 822fa84 | 2015-04-16 14:26:10 +0300 | [diff] [blame^] | 1 | // |
| 2 | // Copyright (c) 2002-2015 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 | // The SeparateArrayInitialization function splits each array initialization into a declaration and an assignment. |
| 7 | // Example: |
| 8 | // type[n] a = initializer; |
| 9 | // will effectively become |
| 10 | // type[n] a; |
| 11 | // a = initializer; |
| 12 | |
| 13 | #ifndef COMPILER_TRANSLATOR_SEPARATEARRAYINITIALIZATION_H_ |
| 14 | #define COMPILER_TRANSLATOR_SEPARATEARRAYINITIALIZATION_H_ |
| 15 | |
| 16 | class TIntermNode; |
| 17 | |
| 18 | void SeparateArrayInitialization(TIntermNode *root); |
| 19 | |
| 20 | #endif // COMPILER_TRANSLATOR_SEPARATEARRAYINITIALIZATION_H_ |