| 1 | // |
| 2 | // Copyright (c) 2017 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 | // IsASTDepthBelowLimit: Check whether AST depth is below a specific limit. |
| 7 | |
| 8 | #ifndef COMPILER_TRANSLATOR_ISASTDEPTHBELOWLIMIT_H_ |
| 9 | #define COMPILER_TRANSLATOR_ISASTDEPTHBELOWLIMIT_H_ |
| 10 | |
| 11 | namespace sh |
| 12 | { |
| 13 | |
| 14 | class TIntermNode; |
| 15 | |
| 16 | bool IsASTDepthBelowLimit(TIntermNode *root, int maxDepth); |
| 17 | |
| 18 | } // namespace sh |
| 19 | |
| 20 | #endif // COMPILER_TRANSLATOR_ISASTDEPTHBELOWLIMIT_H_ |
| 21 | |