define TEST_PAL_CALLING_CONVENTION

From liblfds.org
Revision as of 21:04, 7 May 2016 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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