Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ícaro_Lima
Beginner
175 Views

SGXAPI, what is it?

Jump to solution

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
175 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
176 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

Ícaro_Lima
Beginner
175 Views

Thank you!

Reply