2
// Copyright (c) 2002-2012 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.
6
// UnfoldShortCircuitToIf is an AST traverser to convert short-circuiting operators to if-else statements.
7
// The results are assigned to s# temporaries, which are used by the main translator instead of
8
// the original expression.
11
#ifndef COMPILER_TRANSLATOR_UNFOLDSHORTCIRCUIT_H_
12
#define COMPILER_TRANSLATOR_UNFOLDSHORTCIRCUIT_H_
16
void UnfoldShortCircuitToIf(TIntermNode *root, unsigned int *temporaryIndex);
18
#endif // COMPILER_TRANSLATOR_UNFOLDSHORTCIRCUIT_H_