stop using macro in TRACY_CL_CHECK_ERROR

This commit is contained in:
Cloud Han 2022-01-18 14:01:20 +08:00
parent e28c562a20
commit f8d231bbc9

View File

@ -50,7 +50,7 @@ using TracyCLCtx = void*;
}
#define TRACY_CL_CHECK_ERROR(err) if(err != CL_SUCCESS) { \
std::ostringstream oss; \
oss << ("TRACY_CL_CHECK_ERROR failed on " __FILE__ ":" TRACY_CL_TO_STRING(__LINE__)) \
oss << "TRACY_CL_CHECK_ERROR failed on " << __FILE__ << ":" << __LINE__ \
<< ": error code " << err; \
auto msg = oss.str(); \
TracyMessage(msg.data(), msg.size()); \