This fixes a missed header function in GraphicsMemory for Xbox which needed __cdecl (see #180)
The library uses explicit __cdecl decoration in the header to ensure that on x86/x64, the calling convention is consistent with how the library is built (i.e. it uses /Gd for x64/x86) no matter which default calling-convention the client code is using.
In most cases you only need to decorate the header declaration of a function, but you also need to decorate the definition in a few specific cases:
This fixes a missed header function in GraphicsMemory for Xbox which needed
__cdecl
(see #180)The library uses explicit
__cdecl
decoration in the header to ensure that on x86/x64, the calling convention is consistent with how the library is built (i.e. it uses /Gd for x64/x86) no matter which default calling-convention the client code is using.In most cases you only need to decorate the header declaration of a function, but you also need to decorate the definition in a few specific cases:
Free functions (i.e. not class member methods)
Virtual overrides