Difference between revisions of "r7.1.0:Define TEST PAL CALLING CONVENTION"

From liblfds.org
Jump to navigation Jump to search
m (1 revision imported)
 
(No difference)

Latest revision as of 21:04, 7 May 2016

Source File

└───liblfds710
    └───inc
        └───liblfds710
                lfds710_lfds710_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

See Also