diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-06-09 11:47:01 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-06-09 12:20:25 -0400 |
| commit | 3f210836ad330bcb6bca5dee73c5c542ac18af32 (patch) | |
| tree | 20ff231e6989d87a23411522fc6cd746d0f51711 /Source/Core/VideoCommon/IndexGenerator.cpp | |
| parent | 03414e8e848fd99e2ea83f4466a1cf34c2ad6807 (diff) | |
Compiler: Rename __forceinline define to DOLPHIN_FORCE_INLINE
This is much better as prefixed double underscores are reserved for the
implementation when it comes to identifiers. Another reason its better,
is that, on Windows, where __forceinline is a compiler built-in, with
the previous define, header inclusion software that detects unnecessary
includes will erroneously flag usages of Compiler.h as unnecessary
(despite being necessary on other platforms). So we define a macro
that's used by Windows and other platforms to ensure this doesn't
happen.
Diffstat (limited to 'Source/Core/VideoCommon/IndexGenerator.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/IndexGenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/IndexGenerator.cpp b/Source/Core/VideoCommon/IndexGenerator.cpp index 2d9ec0d098..6cb49aceba 100644 --- a/Source/Core/VideoCommon/IndexGenerator.cpp +++ b/Source/Core/VideoCommon/IndexGenerator.cpp @@ -58,7 +58,8 @@ void IndexGenerator::AddIndices(int primitive, u32 numVerts) // Triangles template <bool pr> -__forceinline u16* IndexGenerator::WriteTriangle(u16* Iptr, u32 index1, u32 index2, u32 index3) +DOLPHIN_FORCE_INLINE u16* IndexGenerator::WriteTriangle(u16* Iptr, u32 index1, u32 index2, + u32 index3) { *Iptr++ = index1; *Iptr++ = index2; |
