define TEST_PAL_CALLING_CONVENTION

From liblfds.org
Revision as of 20:16, 17 February 2017 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

└───liblfds711
    └───inc
        └───liblfds711
                lfds711_lfds711_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