mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
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.
This commit is contained in:
parent
03414e8e84
commit
3f210836ad
8 changed files with 23 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue