MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / DoAssert

Function DoAssert

python/common/Assert.cpp:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace nvcvpy::util {
24
25void DoAssert(const char *file, int line, const char *cond)
26{
27#if NVCV_EXPOSE_CODE
28 fprintf(stderr, "Fatal assertion error on %s:%d: %s\n", file, line, cond);
29#else
30 (void)file;
31 (void)line;
32 (void)cond;
33 fprintf(stderr, "Fatal assertion error\n");
34#endif
35 abort();
36}
37
38} // namespace nvcvpy::util

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected