MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / astcenc_runtime_assert

Function astcenc_runtime_assert

Source/astcenccli_image_external.cpp:60–67  ·  view source on GitHub ↗

* @brief Trap image load failures and convert into a runtime error. */

Source from the content-addressed store, hash-verified

58 * @brief Trap image load failures and convert into a runtime error.
59 */
60static void astcenc_runtime_assert(bool condition)
61{
62 if (!condition)
63 {
64 print_error("ERROR: Image header corrupt\n");
65 exit(1);
66 }
67}
68
69#include "ThirdParty/stb_image.h"
70#include "ThirdParty/stb_image_write.h"

Callers

nothing calls this directly

Calls 1

print_errorFunction · 0.70

Tested by

no test coverage detected