Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

SGXAPI, what is it?

Ícaro_Lima
Beginner
373 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
373 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

2 Replies
Francisco_C_Intel
374 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

Ícaro_Lima
Beginner
373 Views

Thank you!

Reply