Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
e90a0d5a
Commit
e90a0d5a
authored
Feb 18, 2011
by
daniel@transgaming.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor refactoring.
TRAC #15551 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id:
https://angleproject.googlecode.com/svn/trunk@563
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
05a5d8e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
25 deletions
+7
-25
version.h
src/common/version.h
+1
-1
ConstantUnion.h
src/compiler/ConstantUnion.h
+6
-24
No files found.
src/common/version.h
View file @
e90a0d5a
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 56
2
#define BUILD_REVISION 56
3
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
...
...
src/compiler/ConstantUnion.h
View file @
e90a0d5a
...
...
@@ -26,26 +26,17 @@ public:
bool
operator
==
(
const
int
i
)
const
{
if
(
i
==
iConst
)
return
true
;
return
false
;
return
i
==
iConst
;
}
bool
operator
==
(
const
float
f
)
const
{
if
(
f
==
fConst
)
return
true
;
return
false
;
return
f
==
fConst
;
}
bool
operator
==
(
const
bool
b
)
const
{
if
(
b
==
bConst
)
return
true
;
return
false
;
return
b
==
bConst
;
}
bool
operator
==
(
const
ConstantUnion
&
constant
)
const
...
...
@@ -55,20 +46,11 @@ public:
switch
(
type
)
{
case
EbtInt
:
if
(
constant
.
iConst
==
iConst
)
return
true
;
break
;
return
constant
.
iConst
==
iConst
;
case
EbtFloat
:
if
(
constant
.
fConst
==
fConst
)
return
true
;
break
;
return
constant
.
fConst
==
fConst
;
case
EbtBool
:
if
(
constant
.
bConst
==
bConst
)
return
true
;
break
;
return
constant
.
bConst
==
bConst
;
}
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment