MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / CHECK

Function CHECK

shared/UtilsVulkan.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include <cstdlib>
33
34void CHECK(bool check, const char* fileName, int lineNumber)
35{
36 if (!check)
37 {
38 printf("CHECK() failed at %s:%i\n", fileName, lineNumber);
39 assert(false);
40 exit(EXIT_FAILURE);
41 }
42}
43
44static VKAPI_ATTR VkBool32 VKAPI_CALL VulkanDebugCallback(
45 VkDebugUtilsMessageSeverityFlagBitsEXT Severity,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected