MCPcopy Create free account
hub / github.com/arrayfire/forge / print_error

Function print_error

src/backend/common/err_common.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void print_error(const string &msg)
80{
81 std::string perr = getEnvVar("FG_PRINT_ERRORS");
82 if(!perr.empty()) {
83 if(perr != "0")
84 fprintf(stderr, "%s\n", msg.c_str());
85 }
86
87 getGlobalErrorString() = msg;
88}
89
90fg_err processException()
91{

Callers 1

processExceptionFunction · 0.85

Calls 1

getEnvVarFunction · 0.85

Tested by

no test coverage detected