summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/TransformUnit.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-03-14 20:34:35 -0400
committerLioncash <mathew1800@gmail.com>2018-03-14 22:03:12 -0400
commit50a476c3714b3c423609ec04ce424c244bd2a1c1 (patch)
tree68a1dadba4b9d61223401993865d0efa314e6a26 /Source/Core/VideoBackends/Software/TransformUnit.cpp
parent19d97f3fd972f1577ec821306bd438d2cf0232a8 (diff)
Assert: Uppercase assertion macros
Macros should be all upper-cased. This is also kind of a wart that's been sticking out for quite a while now (we avoid prefixing underscores).
Diffstat (limited to 'Source/Core/VideoBackends/Software/TransformUnit.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/TransformUnit.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp
index 5de48f4f05..8a2b4e7fb8 100644
--- a/Source/Core/VideoBackends/Software/TransformUnit.cpp
+++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp
@@ -129,7 +129,7 @@ static void TransformTexCoordRegular(const TexMtxInfo& texinfo, int coordNum, bo
src = srcVertex->normal[2];
break;
default:
- _assert_(texinfo.sourcerow >= XF_SRCTEX0_INROW && texinfo.sourcerow <= XF_SRCTEX7_INROW);
+ ASSERT(texinfo.sourcerow >= XF_SRCTEX0_INROW && texinfo.sourcerow <= XF_SRCTEX7_INROW);
src.x = srcVertex->texCoords[texinfo.sourcerow - XF_SRCTEX0_INROW][0];
src.y = srcVertex->texCoords[texinfo.sourcerow - XF_SRCTEX0_INROW][1];
src.z = 1.0f;
@@ -148,7 +148,7 @@ static void TransformTexCoordRegular(const TexMtxInfo& texinfo, int coordNum, bo
}
else // texinfo.projection == XF_TEXPROJ_STQ
{
- _assert_(!specialCase);
+ ASSERT(!specialCase);
if (texinfo.inputform == XF_TEXINPUT_AB11)
MultiplyVec2Mat34(src, mat, *dst);
@@ -289,7 +289,7 @@ static void LightColor(const Vec3& pos, const Vec3& normal, u8 lightNum, const L
AddScaledIntegerColor(light->color, attn * difAttn, lightCol);
break;
default:
- _assert_(0);
+ ASSERT(0);
}
}
@@ -315,7 +315,7 @@ static void LightAlpha(const Vec3& pos, const Vec3& normal, u8 lightNum, const L
lightCol += light->color[0] * attn * difAttn;
break;
default:
- _assert_(0);
+ ASSERT(0);
}
}
@@ -432,15 +432,15 @@ void TransformTexCoord(const InputVertexData* src, OutputVertexData* dst, bool s
}
break;
case XF_TEXGEN_COLOR_STRGBC0:
- _assert_(texinfo.sourcerow == XF_SRCCOLORS_INROW);
- _assert_(texinfo.inputform == XF_TEXINPUT_AB11);
+ ASSERT(texinfo.sourcerow == XF_SRCCOLORS_INROW);
+ ASSERT(texinfo.inputform == XF_TEXINPUT_AB11);
dst->texCoords[coordNum].x = (float)dst->color[0][0] / 255.0f;
dst->texCoords[coordNum].y = (float)dst->color[0][1] / 255.0f;
dst->texCoords[coordNum].z = 1.0f;
break;
case XF_TEXGEN_COLOR_STRGBC1:
- _assert_(texinfo.sourcerow == XF_SRCCOLORS_INROW);
- _assert_(texinfo.inputform == XF_TEXINPUT_AB11);
+ ASSERT(texinfo.sourcerow == XF_SRCCOLORS_INROW);
+ ASSERT(texinfo.inputform == XF_TEXINPUT_AB11);
dst->texCoords[coordNum].x = (float)dst->color[1][0] / 255.0f;
dst->texCoords[coordNum].y = (float)dst->color[1][1] / 255.0f;
dst->texCoords[coordNum].z = 1.0f;