-2
// declaration in header file
void XM_CALLCONV F(FXMVECTOR vec);

// definition in source file
void XM_CALLCONV F(FXMVECTOR vec) { ... }

Do I have to writh XM_CALLCONV both of them? or just write it once at declareation?

sunkue
  • 278
  • 1
  • 9

1 Answers1

1

https://learn.microsoft.com/en-us/cpp/cpp/vectorcall?view=msvc-160

I got it. In MScompiler, Just write it once at declareation is ok.

sunkue
  • 278
  • 1
  • 9
  • Be sure to read the [Microsoft Docs](https://learn.microsoft.com/en-us/windows/win32/dxmath/pg-xnamath-internals#calling-conventions) page on the convention details. – Chuck Walbourn May 26 '21 at 07:27