Macros
ie_exception_conversion.hpp File Reference

A header file that provides macros to handle no exception methods. More...

#include <ie_common.h>

Go to the source code of this file.

Macros

#define  CALL_STATUS_FNC(function, ...)
 
#define  CALL_STATUS_FNC_NO_ARGS(function)
 
#define  CALL_FNC(function, ...)
 
#define  CALL_FNC_REF(function, ...)
 
#define  CALL_FNC_NO_ARGS(function)
 
#define  CALL_FNC_NO_ARGS_REF(function)
 

Detailed Description

A header file that provides macros to handle no exception methods.

Macro Definition Documentation

§ CALL_FNC

#define CALL_FNC (   function,
  ... 
)
Value:
ResponseDesc resp;\
auto result = actual->function(__VA_ARGS__, &resp);\
if (resp.msg[0] != '\0') {\
THROW_IE_EXCEPTION << resp.msg;\
}\
return result;

§ CALL_FNC_NO_ARGS

#define CALL_FNC_NO_ARGS (   function )
Value:
ResponseDesc resp;\
auto result = actual->function(&resp);\
if (resp.msg[0] != '\0') {\
THROW_IE_EXCEPTION << resp.msg;\
}\
return result;

§ CALL_FNC_NO_ARGS_REF

#define CALL_FNC_NO_ARGS_REF (   function )
Value:
ResponseDesc resp;\
auto & result = actual->function(&resp);\
if (resp.msg[0] != '\0') {\
THROW_IE_EXCEPTION << resp.msg;\
}\
return result;

§ CALL_FNC_REF

#define CALL_FNC_REF (   function,
  ... 
)
Value:
ResponseDesc resp;\
auto & result = actual->function(__VA_ARGS__, &resp);\
if (resp.msg[0] != '\0') {\
THROW_IE_EXCEPTION << resp.msg;\
}\
return result;

§ CALL_STATUS_FNC

#define CALL_STATUS_FNC (   function,
  ... 
)
Value:
ResponseDesc resp;\
auto res = actual->function(__VA_ARGS__, &resp);\
if (res != OK) InferenceEngine::details::extract_exception(res, resp.msg);
Definition: ie_argmax_layer.hpp:11

§ CALL_STATUS_FNC_NO_ARGS

#define CALL_STATUS_FNC_NO_ARGS (   function )
Value:
ResponseDesc resp;\
auto res = actual->function(&resp);\
if (res != OK) InferenceEngine::details::extract_exception(res, resp.msg);
Definition: ie_argmax_layer.hpp:11