Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
10 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

Accepted Solutions
Highlighted
10 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
Highlighted
11 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
Highlighted
Beginner
10 Views

Thank you!

0 Kudos