2020-11-25 08:19:00 -08:00
|
|
|
#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.
|
|
|
|
*/
|
2024-07-26 05:10:25 -07:00
|
|
|
#ifdef __x86_64__
|
2020-11-25 08:19:00 -08:00
|
|
|
#define NT2SYSV(FUNCTION) TRAMPOLINE(FUNCTION, __nt2sysv)
|
2024-07-26 05:10:25 -07:00
|
|
|
#else
|
|
|
|
#define NT2SYSV(FUNCTION) FUNCTION
|
|
|
|
#endif
|
2020-11-25 08:19:00 -08:00
|
|
|
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_ */
|