zenilib: zenilib/jni/external/angle/src/compiler/preprocessor/SourceLocation.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SourceLocation.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 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.
5 //
6
7 #ifndef COMPILER_PREPROCESSOR_SOURCE_LOCATION_H_
8 #define COMPILER_PREPROCESSOR_SOURCE_LOCATION_H_
9
10 namespace pp
11 {
12
13 struct SourceLocation
14 {
15 SourceLocation() : file(0), line(0) { }
16 SourceLocation(int f, int l) : file(f), line(l) { }
17
18 bool equals(const SourceLocation& other) const
19 {
20 return (file == other.file) && (line == other.line);
21 }
22
23 int file;
24 int line;
25 };
26
27 inline bool operator==(const SourceLocation& lhs, const SourceLocation& rhs)
28 {
29 return lhs.equals(rhs);
30 }
31
32 inline bool operator!=(const SourceLocation& lhs, const SourceLocation& rhs)
33 {
34 return !lhs.equals(rhs);
35 }
36
37 } // namespace pp
38 #endif // COMPILER_PREPROCESSOR_SOURCE_LOCATION_H_
f
GLclampf f
Definition: glew.h:3390
pp::operator==
bool operator==(const SourceLocation &lhs, const SourceLocation &rhs)
Definition: SourceLocation.h:27
pp::SourceLocation::SourceLocation
SourceLocation()
Definition: SourceLocation.h:15
pp
png_sPLT_entryp pp
Definition: pngrutil.c:1375
pp::SourceLocation::file
int file
Definition: SourceLocation.h:23
pp::operator!=
bool operator!=(const SourceLocation &lhs, const SourceLocation &rhs)
Definition: SourceLocation.h:32
l
GLdouble l
Definition: glew.h:8383
pp::SourceLocation::SourceLocation
SourceLocation(int f, int l)
Definition: SourceLocation.h:16
pp::SourceLocation::equals
bool equals(const SourceLocation &other) const
Definition: SourceLocation.h:18
pp::SourceLocation::line
int line
Definition: SourceLocation.h:24
pp::SourceLocation
Definition: SourceLocation.h:13