Value: [&]() { \
GFSDK_Aftermath_Result _result = FC; \
if (!GFSDK_Aftermath_SUCCEED(_result)) \
{ \
fflush(stdout); \
exit(1); \
} \
}()
std::string AftermathErrorMessage(GFSDK_Aftermath_Result result)
Helper for checking Nsight Aftermath failures.
Helper macro for checking Nsight Aftermath results and throwing exception in case of a failure.
Definition at line 133 of file NsightAftermathHelpers.h.
133#define AFTERMATH_CHECK_ERROR(FC) \
134 [&]() { \
135 GFSDK_Aftermath_Result _result = FC; \
136 if (!GFSDK_Aftermath_SUCCEED(_result)) \
137 { \
138 printf("%s\n", AftermathErrorMessage(_result).c_str()); \
139 fflush(stdout); \
140 exit(1); \
141 } \
142 }()