cosmopolitan/libc/nexgen32e/nt2sysv.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
461 B
C
Raw Normal View History

#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_
#define COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_
#include "libc/nexgen32e/trampoline.h"
/**
* Creates function to thunk FUNCTION from MSX64 to System V ABI.
*
* This macro should be used when specifying callbacks in the WIN32 API.
*/
#ifdef __x86_64__
#define NT2SYSV(FUNCTION) TRAMPOLINE(FUNCTION, __nt2sysv)
#else
#define NT2SYSV(FUNCTION) FUNCTION
#endif
#endif /* COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_ */