LibGimbal  1.0.0
Ultimate C17/C++20 Cross-Language Runtime Framework and Meta Type System
gimbal_context.hpp File Reference

Go to the source code of this file.

Data Structures

class  Context
 

Namespaces

 gimbal
 

Macros

#define GBL_RESULT_CATCH(code)
 
#define GBL_CONTEXT_EXT_C_TO_CPP_BEGIN_NO_THROW(pFrame, UdType)
 
#define GBL_CONTEXT_EXT_C_TO_CPP_BEGIN(pFrame, UdType)
 
#define GBL_CONTEXT_EXT_C_TO_CPP_END()
 

Macro Definition Documentation

◆ GBL_CONTEXT_EXT_C_TO_CPP_BEGIN

#define GBL_CONTEXT_EXT_C_TO_CPP_BEGIN (   pFrame,
  UdType 
)
Value:
GBL_UNUSED(result); \
GBL_CONTEXT_EXT_C_TO_CPP_BEGIN_NO_THROW(pFrame, Context); \
try { \

Definition at line 28 of file gimbal_context.hpp.

◆ GBL_CONTEXT_EXT_C_TO_CPP_BEGIN_NO_THROW

#define GBL_CONTEXT_EXT_C_TO_CPP_BEGIN_NO_THROW (   pFrame,
  UdType 
)
Value:
GBL_ASSERT(pFrame); \
GBL_API_BEGIN(pFrame->pContext); \
UdType* pUd = static_cast<UdType*>(pFrame->pContextUd); \
GBL_API_VERIFY_POINTER(pUd)

Definition at line 22 of file gimbal_context.hpp.

◆ GBL_CONTEXT_EXT_C_TO_CPP_END

#define GBL_CONTEXT_EXT_C_TO_CPP_END ( )
Value:
GBL_API_END();

Definition at line 34 of file gimbal_context.hpp.

◆ GBL_RESULT_CATCH

#define GBL_RESULT_CATCH (   code)
Value:
catch(const Exception& resultException) { \
code = resultException.getResult(); \
} \
catch(...) { \
code = Result(Result::ErrorUnhandledException); \
}

Definition at line 14 of file gimbal_context.hpp.

GBL_RESULT_CATCH
#define GBL_RESULT_CATCH(code)
Definition: gimbal_context.hpp:14
GBL_ASSERT
#define GBL_ASSERT(...)
Definition: gimbal_macro_utils.h:136
GBL_RESULT_SUCCESS
#define GBL_RESULT_SUCCESS(value)
Definition: gimbal_result.h:72
gimbal::Result
constexpr Result(bool success) noexcept
Definition: gimbal_result.hpp:19
GBL_API_RESULT
#define GBL_API_RESULT()
Definition: gimbal_api_frame.h:26