Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

SGXAPI, what is it?

Ícaro_Lima
Beginner
630 Views

In some SGX methods itself I have seen a prefix before the method return, "SGXAPI", what is this?

Maybe I did not read enough, but I could not find anything.

0 Kudos
1 Solution
Francisco_C_Intel
630 Views

Hi.

In Windows, you can find this in the IntelSGXSDK\include\sgx_defs.h file:

#if defined(_MSC_VER)
/* The following macros are MSVC only */
# define SGXAPI __cdecl

 

This is to explicitly define the API as __cdecl instead of __stdcall.

 

Francisco

View solution in original post

0 Kudos
2 Replies
Francisco_C_Intel
631 Views

Hi.

In Windows, you can find this in the IntelSGXSDK\include\sgx_defs.h file:

#if defined(_MSC_VER)
/* The following macros are MSVC only */
# define SGXAPI __cdecl

 

This is to explicitly define the API as __cdecl instead of __stdcall.

 

Francisco

0 Kudos
Ícaro_Lima
Beginner
630 Views

Thank you!

0 Kudos
Reply