define TEST_PAL_CALLING_CONVENTION
Jump to navigation
Jump to search
Source File
└───liblfds700 └───inc └───liblfds700 lfds700_lfds700_porting_abstraction_layer_compiler.h
Define
#define TEST_PAL_CALLING_CONVENTION [thread function calling convention]
Optionality
This define is mandatory.
Notes
On Windows, the thread function has a particular calling convention. To support this, the TEST_PAL_CALLING_CONVENTION define exists. Currently it is set on Windows and on no other platforms.
Looking at the Windows thread function prototype;
DWORD WINAPI ThreadProc( _In_ LPVOID lpParameter );
We see the calling convention is specified as WINAPI.
On other platforms, this define is defined, but empty.
Example
#define TEST_PAL_CALLING_CONVENTION WINAPI