- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page