diff options
Diffstat (limited to 'Source/ThirdParty/ANGLE/src/compiler/util.cpp')
| -rw-r--r-- | Source/ThirdParty/ANGLE/src/compiler/util.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Source/ThirdParty/ANGLE/src/compiler/util.cpp b/Source/ThirdParty/ANGLE/src/compiler/util.cpp deleted file mode 100644 index d6e5eeed9..000000000 --- a/Source/ThirdParty/ANGLE/src/compiler/util.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// -// Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// - -#include "compiler/util.h" - -#include <limits> - -#include "compiler/preprocessor/numeric_lex.h" - -bool atof_clamp(const char *str, float *value) -{ - bool success = pp::numeric_lex_float(str, value); - if (!success) - *value = std::numeric_limits<float>::max(); - return success; -} - -bool atoi_clamp(const char *str, int *value) -{ - bool success = pp::numeric_lex_int(str, value); - if (!success) - *value = std::numeric_limits<int>::max(); - return success; -} - |
