MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / set_global_error_string

Function set_global_error_string

src/backend/common/err_common.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114int DimensionError::getArgIndex() const noexcept { return argIndex; }
115
116af_err set_global_error_string(const string &msg, af_err err) {
117 string perr = getEnvVar("AF_PRINT_ERRORS");
118 if (!perr.empty()) {
119 if (perr != "0") { fprintf(stderr, "%s\n", msg.c_str()); }
120 }
121 get_global_error_string() = msg;
122 return err;
123}
124
125af_err processException() {
126 stringstream ss;

Callers 1

processExceptionFunction · 0.85

Calls 1

getEnvVarFunction · 0.85

Tested by

no test coverage detected