MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / validate_tempAllocSucceeded

Function validate_tempAllocSucceeded

quest/src/core/validation.cpp:4349–4357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4347 */
4348
4349void validate_tempAllocSucceeded(bool succeeded, qindex numElems, qindex numBytesPerElem, const char* caller) {
4350
4351 // avoid showing total bytes in case it overflows
4352 tokenSubs vars = {
4353 {"${NUM_ELEMS}", numElems},
4354 {"${NUM_BYTES_PER_ELEM}", numBytesPerElem}};
4355
4356 assertThat(succeeded, report::TEMP_ALLOC_FAILED, vars, caller);
4357}
4358
4359
4360

Callers 7

getQuregAmpsFunction · 0.85
getDensityQuregAmpsFunction · 0.85
getSeedsFunction · 0.85
setDensityQuregAmpsFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected