How to check at compile time that a function pointer has an __stdcall calling __stdcall ?
Something like
void foo() {} static_assert(is_stdcall<decltype(&foo)>::value, "foo() must be stdcall");
or at least
must_be_stdcall<T>(); // compiler error or warning if not stdcall
c ++ visual-c ++ calling-convention
Abyx
source share